Pegasi Wiki

This wiki acts as a memo for our own work so why not share them? Feel free to browse and use out notes and leave a note while at it.

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

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~~
  

  //check if we are running within the DokuWiki environment if (!defined("DOKU_INC")){ die(); } //place the needed HTML source codes BELOW this line