2015-10-17

[SOLVED]how-to-start-virtual-box-machines-automatically-when-booting

#10:10 05/10/2015
#Xem tên các máy ảo:
root@daiviet /opt/VirtualBox# ll
total 1484760
drwx------. 4 root root       4096 Oct  5 09:51 tcx-ubuntu-x86-234
-rw-r--r--. 1 root root  389478564 Oct  1 14:42 tcx-ubuntu-x86-234-1.7z
drwx------. 4 root root       4096 Oct  5 09:51 tcx-winxp-235
-rw-r--r--. 1 root root 1130889661 Oct  1 16:31 tcx-winxp-235-1.7z
-rw-r--r--. 1 root root         53 Oct  1 16:34 tcx-winxp-235-1.7z.md5
root@daiviet /opt/VirtualBox#

#Ta có 2 máy ảo, có tên là:
tcx-ubuntu-x86-234
tcx-winxp-235

#Script start máy ảo:
#/opt/script/vbox-auto-start-on-boot.sh
##############################################
VBoxHeadless -s "tcx-ubuntu-x86-234" &
VBoxHeadless -s "tcx-winxp-235" &
#


#Start on boot:
root@daiviet /opt/VirtualBox# cat /etc/rc.local
#START VMs ON BOOT:
/opt/script/vbox-auto-start-on-boot.sh


No comments:

Post a Comment