I am trying to install centos 8 on ubuntu 18.04 as a virtual machine. I have a wireless connection. When I run the following command:
chh2@chh2-cpu:~$ sudo virt-install --name=chris_centos --ram=2048 --vcpus=2 --cdrom=/var/lib/libvirt/images/CentOS-8.1.1911-x86_64-dvd1.iso --os-type=linux --os-variant=rhel7 --network network=default --graphics=spice --disk path=/var/lib/libvirt/images/chris_centos.dsk,size=10
I get the following error message:
Starting install...
Allocating 'chris_centos.dsk' | 10 GB 00:00
No protocol specified
Unable to init server: Could not connect: Connection refused
(virt-viewer:16144): Gtk-WARNING **: 16:41:23.769: cannot open display: :0
Domain installation still in progress. You can reconnect to
the console to complete the installation process.
I am not sure why this is not working. Especially the --network option I am not clear about. There is plenty of information on the web how to configure this with a bridge (eth0) but not a lot on how to configure with wireless (DHCP). What I want to achieve is that my virtual machine can access my wlp3s0 wireless connection and I also want to be able to access the files system of the host (Ubuntu) from my virtual-machine (Centos). Would two seperate ip addresses for host and guest be reaching for the stars? I am a bit new to this so it would be great to get some help.