[Solved] How to start a VM "headless" upon boot time in MX Linux?
Posted: 17. Aug 2019, 10:10
Hello,
I'm using Virtualbox 6.0.10 on MX Linux 18.1.
I've created a Windows 10 Home VM, and it works well. Let's say it's name within Virtualbox is "Win10VM". Furthermore, I can connect to it using Remmina, using Virtualbox's built-in RDP capabilities. In that VM, I have Settings -> Display -> Remote Display -> "Enable Server" checked, as well as "Extended Features: Allow Multiple Connections".
I would like for Remmina/RDP to be the primary way that this VM gets connected to, by the various Linux users who might physically sit down in front of, and log into this Linux host system. I would like this Windows 10 Home VM to start headlessly at boot time, Virtualbox not running as the root user (say, as a normal, non-root user called "vmuser", who is not a human user, but exists just for running this VM). Then Virtualbox's RDP server will hopefully listen for those Remmina RDP conections.
Can anyone suggest what I can put into /etc/rc.local, before the "exit 0" line at the end?
Something like:
/bin/su -c "/usr/bin/VirtualBoxVM --headless --startvm 'Win10VM' " - vmuser &
Any suggestions?
I'm using Virtualbox 6.0.10 on MX Linux 18.1.
I've created a Windows 10 Home VM, and it works well. Let's say it's name within Virtualbox is "Win10VM". Furthermore, I can connect to it using Remmina, using Virtualbox's built-in RDP capabilities. In that VM, I have Settings -> Display -> Remote Display -> "Enable Server" checked, as well as "Extended Features: Allow Multiple Connections".
I would like for Remmina/RDP to be the primary way that this VM gets connected to, by the various Linux users who might physically sit down in front of, and log into this Linux host system. I would like this Windows 10 Home VM to start headlessly at boot time, Virtualbox not running as the root user (say, as a normal, non-root user called "vmuser", who is not a human user, but exists just for running this VM). Then Virtualbox's RDP server will hopefully listen for those Remmina RDP conections.
Can anyone suggest what I can put into /etc/rc.local, before the "exit 0" line at the end?
Something like:
/bin/su -c "/usr/bin/VirtualBoxVM --headless --startvm 'Win10VM' " - vmuser &
Any suggestions?