Differences
This shows you the differences between two versions of the page.
create_new_virtual [2017/11/06 10:11] |
create_new_virtual [2017/11/06 10:11] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ==== How to create a new virtual guest using console ==== | ||
+ | |||
+ | Change disk path, mac addresses and install image location | ||
+ | |||
+ | <code> | ||
+ | virt-install \ | ||
+ | --name start.pegasi.fi \ | ||
+ | --arch x86_64 --cpu host --ram 2048 \ | ||
+ | --disk path=/dev/disk/by-path/ip-192.168.120.28:3260-iscsi-iqn.2004-04.com.qnap:ts-459uplus:iscsi.pegasi.cf8790-lun-22,io=native,format=raw \ | ||
+ | --vcpus 2 \ | ||
+ | --os-type linux \ | ||
+ | --os-variant centos7.0 \ | ||
+ | --network bridge=br0,mac=52:54:10:00:00:09 \ | ||
+ | --network bridge=br1,mac=52:54:10:00:00:0a \ | ||
+ | --graphics none \ | ||
+ | --console pty,target_type=serial \ | ||
+ | --location '/mnt/installimages/CentOS-7-x86_64-Minimal-1511.iso' \ | ||
+ | --extra-args 'console=ttyS0,115200n8 serial' | ||
+ | </code>~~NOCACHE~~ | ||
+ | ~~QUICKSTATS:@create_new_virtual&basics~~ | ||
+ | ~~QUICKSTATS:@create_new_virtual&ip~~ | ||