네트워크으로 CentOS7 설치
1 2 3 4 5 6 7 8 9 10 11 12 |
# virt-install \ --name centos7 \ --ram 4096 \ --disk path=/var/lib/libvirt/images/centos7.qcow2,size=10 \ --vcpus 2 \ --os-type linux \ --os-variant rhel7 \ --network bridge=br0 \ --graphics none \ --console pty,target_type=serial \ --location 'http://ftp.iij.ad.jp/pub/linux/centos/7/os/x86_64/' \ --extra-args 'console=ttyS0,115200n8 serial' |
OS 이미지로 CentOS7 설치
1 2 3 4 5 6 7 8 9 |
# virt-install --name centos7 \ --ram=4096 \ --disk /var/lib/libvirt/images/centos7.qcow2,size=10 \ --location /var/lib/libvirt/images/CentOS-7-x86_64-DVD-1511.iso \ --os-type linux \ --os-variant rhel7 \ --network bridge=br0 \ --graphics none \ --extra-args='console=tty0 console=ttyS0,115200n8' |
가상 서버 설치 후 추가 설정
서버 이름 및 네트워크 설정
1 2 3 4 |
# hostnamectl set-hostname HOSTNAME # nmcli c modify eth0 ipv4.addresses 192.168.1.101/24 ipv4.method manual # nmcli c modify eth0 ipv4.gateway 192.168.1.254 # nmcli c modify eth0 ipv4.dns 192.168.1.254 |