# How to login in your virtualbox vm from sddm

By [Koukos Nest](https://paragraph.com/@koukos) · 2024-03-01

linux, sddm, virtualbox

---

On a terminal as root or with sudo you type:  
nano /usr/bin/windowsvm

Then inside nano:  
#!/bin/bash  
VirtualBox -startvm windowsvm

Where windowsvm you type the name of your virtual machine.  
Then:  
chmod 755 /usr/bin/windowsvm

And now you create a new xsession:  
nano /usr/share/xsessions/windowsvm.desktop

And youpaste thiw:  
\[Desktop Entry\]  
Encoding=UTF-8  
Name=Seven  
Comment=WindowsVM  
Exec=/usr/bin/windowsvm  
Icon=  
Type=Application

Restart sddm and you are ready.

Ξέρω και γαμώ τα Κομπιούτερ ({,})

Original post @ [ihack.gr/2013/03/login-seven-…](http://ihack.gr/2013/03/login-seven-…)

---

*Originally published on [Koukos Nest](https://paragraph.com/@koukos/virtualbox-sddm)*
