Virt-install Examples
Jump to navigation
Jump to search
Internal
Examples
Text-Based Anaconda Guest Installation
Make sure the ISO image file can be read by the user "qemu":
NAT
TO TEST:
NAT:
virt-install --network=default --name=rhel7-machine --ram=756 --vcpus=4 --os-type=linux --os-variant=rhel7
External DHCP server:
virt-install --network=br0 \ --name=rhel7-machine --ram=756 --vcpus=4 \ --os-type=linux --os-variant=rhel7
Static IPV4 Address:
virt-install \ --network=br0 \ --name=rhel7-machine --ram=756 --vcpus=4 \ --os-type=linux --os-variant=rhel7 \ --extra-args="ip=192.168.1.2::192.168.1.1:255.255.255.0:test.example.com:eth0:n one
The arguments of the --extra-args parameter specify the static network setting, using the following structure:
ip=[ip]::[gateway]:[netmask]:[hostname]:[interface]:[autoconf]