Skip to main content

how to create guest headless VMs

create VMs in guest headless mode

guest headless is a term to create virtual guest by using the linux terminal (CLI). the computer server facilitates installation through command lines, and guest installation process will be done by remote application (ssh).

here are the steps how to create fedora 18 (for example) virtual machine using image file (iso). 

1. creating guest name
$ VBoxManage createvm --name "fedora 18" --register

2. allocating amounts of RAM and networking type
$ VBoxManage modifyvm "fedora 18" --ostype fedora --memory 1024 --acpi on --pae on --boot1 dvd --nic1 bridged --bridgeadapter1 eth0

3. create amount of hard disk capacity
$ VBoxManage createhd --filename fedora18.vdi --size 10000

4. selecting hard disk device type
$ VBoxManage storagectl "fedora18" --name "IDE Controller" --add ide

5. connecting fedora18.vdi file to hard disk device type
$ VBoxManage storageattach "fedora 18" --storagectl "IDE Controller" --port 0 --device 0 --type hdd --medium fedora18.vdi

6. selecting iso file location (for example the file is located on /data/iso/fedora18.iso)
$ VBoxManage storageattach "fedora 18" --storagectl "IDE Controller" --port 1 --device 0 --type dvddrive --medium /data/iso/fedora18.iso

7. activating guest headless
$ VBoxHeadless --startvm "fedora 18"
by executing the command, virtual machine is running with VRDB (VirtualBox Remote Desktop Protocol).

on the remote desktop computer, using rdesktop application type the command :
$ rdesktop -a 16 ipaddr
(ipaddr information is filled with the server computer ip address who running VirtualBox VMs).

another VBoxManage commands :
a. to shut down virtual machine
$ VBoxManage controlvm "fedora 18" poweroff

b. to pause virtual machine
$ VBoxManage controlvm "fedora 18" pause

c. to reset virtual machine
$ VBoxManage controlvm "fedora18" reset

d. to see the list of all VMs
$ VBoxManage list vms

e. to see the list of running VMs
$ VBoxManage list running vms

f. to see information of VMs
$ VBoxManage showinfo "VMs name"

source :
http://www.virtualbox.org/manual/ch08.html

Comments

Popular posts from this blog

about gigabyte NIC onboard not detected on enterprise linux distribution

on several gigabyte motherboard, onboard network interface card  will not be detected on enterprise linux distribution (e.g. scientific linux, oracle linux server, etc). alternatively you must supply add-on card. or if you insist to use the onboard card, you must install the unofficial nic driver. this is tutorial how to install driver for onboard network interface card GIGABYTE first of all prepare your system. make sure it has package group "Development Tools" installed. if it has not, install it # yum groupinstall “Development Tools” download the source code : https://www.dropbox.com/s/na91bu4az4p9827/AR81Family-linux-v1.0.1.14.tar.gz extract the source code : # tar zxvf AR81Family-linux1.0.1.14.tar.gz the extraction process will make the new directory "AR81Family*", change to the directory # cd AR81Family* compile the source by type on terminal : # make then, # make install wait until the compiling process finish. next make the new scrip...

about getsebool and setsebool

The setsebool is used to set SELinux boolean value i.e. various configurations can be enabled or disabled using this tool. In other words, the setsebool command switches on and off the protection of SELinux. Type getsebool -a to see all such options which can be enabled or disabled at run time: e.g. # getsebool -a The following should give you a complete listing of all the vsftpd switches: e.g.  # getsebool -a | grep ftp  For example, if httpd_disable_trans set to 1, it will disable SELinux protection for  Apache web server. To disable it, enter:  # setsebool -P httpd_can_network_connect=1 To enable it, enter:    # setsebool -P httpd_can_network_connect=0

All certification