Originally Posted by
Claus7
Hello,
some effort from my perspective to answer your questions:
.....
Hi,
Thanks for your help.
Performed following steps:
=====================
1)
Disconnected all drives on the PC, leaving only the new 2TB SSD connected.
Booted PC with Ubuntu18.04 USB installer and installed Ubuntu 18.04 gnome desktop. Installation went through without problem.
Reboot PC
Host - Ubuntu 18.04 Gnome desktop
$ sudo fdisk -l > fdisk_output_01.txt
(See file attached - fdisk_output_01.txt)
Code:
Disk /dev/sda: 1.8 TiB, 2000398934016 bytes, 3907029168 sectors
$ free -m
Code:
total used free shared buff/cache available
Mem: 32069 1777 28518 117 1774 30014
Swap: 975 0 975
Install bridge-utils
$ sudo apt install bridge-utils
$ ifconfig
Code:
enp2s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.8.2 netmask 255.255.255.0 broadcast 192.168.8.255
inet6 fe80::441d:62c7:b0bf:2dbb prefixlen 64 scopeid 0x20<link>
ether f0:79:59:65:2f:bb txqueuelen 1000 (Ethernet)
RX packets 19694 bytes 23264203 (23.2 MB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 7432 bytes 1147548 (1.1 MB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 754 bytes 72755 (72.7 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 754 bytes 72755 (72.7 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Add following line at the bottom of /etc/apt/sources.list
Code:
deb https://download.virtualbox.org/virtualbox/debian bionic contrib
$ wget -q https://www.virtualbox.org/download/..._vbox_2016.asc -O- | sudo apt-key add - $ wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | sudo apt-key add -$ sudo apt-get update
Code:
Hit:1 http://hk.archive.ubuntu.com/ubuntu bionic InRelease
Hit:2 http://hk.archive.ubuntu.com/ubuntu bionic-updates InRelease
Hit:3 http://hk.archive.ubuntu.com/ubuntu bionic-backports InRelease
Get:4 https://download.virtualbox.org/virtualbox/debian bionic InRelease [4,429 B]
Get:5 http://security.ubuntu.com/ubuntu bionic-security InRelease [83.2 kB]
Get:6 https://download.virtualbox.org/virtualbox/debian bionic/contrib amd64 Packages [1,440 B]
Fetched 89.1 kB in 1s (71.6 kB/s)
Reading package lists... Done
N: Skipping acquire of configured file 'contrib/binary-i386/Packages' as repository 'https://download.virtualbox.org/virtualbox/debian bionic InRelease' doesn't support architecture 'i386'
$ sudo apt-get install virtualbox-5.2
Code:
Reading package lists... Done
Building dependency tree
.....
Setting up gcc-7 (7.3.0-16ubuntu3) ...
Setting up gcc (4:7.3.0-3ubuntu2) ...
Setting up libqt5printsupport5:amd64 (5.9.5+dfsg-0ubuntu1) ...
Setting up libqt5opengl5:amd64 (5.9.5+dfsg-0ubuntu1) ...
Setting up libqt5svg5:amd64 (5.9.5-0ubuntu1) ...
Setting up virtualbox-5.2 (5.2.16-123759~Ubuntu~bionic) ...
Adding group `vboxusers' (GID 127) ...
Done.
Processing triggers for libc-bin (2.27-3ubuntu1) ...
VirtualBox Manager installed
Code:
VirtualBox Graphical User Intertace
Version 5.2.16 r123759(Qt5.9.5)
Please refer to following photos attached
Code:
screenshot01_vbox_manager.png
screenshot02_vbox_manager.png
Download and install extension pack;
https://www.virtualbox.org/wiki/Downloads
Download it on
Code:
VirtualBox 5.2.16 Oracle VM VirtualBox Extension Pack
All supported platforms
Please see;
screenshot_install_extension_pack.png
-> Install
Installation went through successfully
Rebooted PC
Host Unable to set static IP address. After setting static IP address, Host can't connect Internet (ping yahoo.com fails)
I have encountered similar problem on installing all Ubuntu18.04 VMs in the past. Following document helped me out.
How to Enable /etc/rc.local with Systemd
https://www.linuxbabe.com/linux-serv...l-with-systemd
Shall I do the same on the Host? Thanks
2)
Shut down PC and reconnected the old 1TB SSD.
Started PC and booted Ubuntu 18.04 on the new 2TB SSD. Copy "Virtualbox VMs" folder including all VMs (about 70 VMs) from the old SSD to new SSD. It took about 1hr and 15min to finish.
Started VirtualBox Manager
-> Open
/home/satimis/VirtualBox VMs/VM1/VM1.vbox
-> Open
Settings
Network -> Adapter 1
Attached to" [Bridged Adapter]
Name: [enp2s0]
Please see;
screenshot_change_network_settings.png
VM1
$ ifconfig
Code:
br0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.8.79 netmask 255.255.255.0 broadcast 192.168.8.255
inet6 fe80::a00:27ff:fed9:8f44 prefixlen 64 scopeid 0x20<link>
ether 08:00:27:d9:8f:44 txqueuelen 1000 (Ethernet)
RX packets 188 bytes 495628 (495.6 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 243 bytes 29079 (29.0 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
enp0s3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.8.3 netmask 255.255.255.0 broadcast 192.168.8.255
ether 08:00:27:d9:8f:44 txqueuelen 1000 (Ethernet)
RX packets 478 bytes 517370 (517.3 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 272 bytes 39457 (39.4 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 85 bytes 6670 (6.6 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 85 bytes 6670 (6.6 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
$ cat /etc/network/interfaces
Code:
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
# The primary network interface
auto eth0
iface eth0 inet manual
# add bridge ports
auto br0
iface br0 inet static
address 192.168.8.79
dns-nameservers 218.xxx.xx.xxx 219.xx.xxx.xx
network 192.168.8.0
netmask 255.255.255.0
broadcast 192.168.8.255
gateway 192.168.8.1
bridge_ports enp0s3
bridge_fd 9
bridge_hello 2
bridge_maxage 12
bridge_stop off
Tried adding another VM (VM2), also successful. It may take me another day or 2 to finish adding all VMs to this new SSD.
To purchase a new SSD is simple and straightforwards. just paying its price. But to replace the old SSD with it takes lengthy time and effort, even without problem encountered.
Regards
satimis
Bookmarks