I have backed up Linux however my VM backup results in 2 image files. image1.img and image0.img. I am stumped and would Like to have some suggestions on how I can use the image files to recreate a new bootable Ubuntu server install .iso. I basically want to clone my entire ubuntu server configuration that I have established.
cal's questions
How can I get ubuntu to use use all the disk space that I allocate in my VM? Is there something I am missing during my install of ubuntu? When I created my VM I designated 250GB of disk space before I installed ubuntu! However, ubuntu only took up have 123G. What can I do during install of ubuntu to take all that I allocate to it in the VM it resides in?
df -h
Filesystem Size Used Avail Use% Mounted on
udev 966M 0 966M 0% /dev
tmpfs 200M 680K 199M 1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv 123G 3.7G 113G 4% /
tmpfs 997M 0 997M 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 997M 0 997M 0% /sys/fs/cgroup
/dev/vda2 976M 78M 832M 9% /boot
tmpfs 200M 0 200M 0% /run/user/1000
lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sr0 11:0 1 945M 0 rom
vda 252:0 0 250G 0 disk
├─vda1 252:1 0 1M 0 part
├─vda2 252:2 0 1G 0 part /boot
└─vda3 252:3 0 249G 0 part
└─ubuntu--vg-ubuntu--lv 253:0 0 124.5G 0 lvm /
pvs
PV VG Fmt Attr PSize PFree
/dev/vda3 ubuntu-vg lvm2 a-- <249.00g <124.50g
VG #PV #LV #SN Attr VSize VFree
ubuntu-vg 1 1 0 wz--n- <249.00g <124.50g
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
ubuntu-lv ubuntu-vg -wi-ao---- 124.50g
vgdisplay
--- Volume group ---
VG Name ubuntu-vg
System ID
Format lvm2
Metadata Areas 1
Metadata Sequence No 2
VG Access read/write
VG Status resizable
MAX LV 0
Cur LV 1
Open LV 1
Max PV 0
Cur PV 1
Act PV 1
VG Size <249.00 GiB
PE Size 4.00 MiB
Total PE 63743
Alloc PE / Size 31872 / 124.50 GiB
Free PE / Size 31871 / <124.50 GiB
VG UUID UCkda3-Ujun-O43Z-MJh2-JkmG-YnY2-VDVNW8
All running on a Qnap TS-453D,64-bit x86, Intel® Celeron® J4125 quad-core 2.0 GHz processor, 8GB Mem. Using VirtualizationStation 3 VM, 6TB Disk Space Raid 5.
I am out of disk space and have been trying for 2 day researching to expand my vda3 ubuntu--vg-ubuntu--lv into the vda 250GB slot using lvextend but it has not worked for me. Could someone help me out here? Thanks (unbuntu 18.04.)
root@unbuntuserver3:/# lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
loop0 7:0 0 32.3M 1 loop /snap/snapd/11402
loop1 7:1 0 61.6M 1 loop /snap/core20/904
loop2 7:2 0 348K 1 loop /snap/bpytop/216
sr0 11:0 1 841M 0 rom
vda 252:0 0 250G 0 disk
├─vda1 252:1 0 1M 0 part
├─vda2 252:2 0 1G 0 part /boot
└─vda3 252:3 0 49G 0 part
└─ubuntu--vg-ubuntu--lv 253:0 0 49G 0 lvm /
I did a df -h and the 250 GB disk does not show:
Filesystem Size Used Avail Use% Mounted on
udev 1.9G 0 1.9G 0% /dev
tmpfs 395M 1.1M 394M 1% /run
/dev/mapper/ubuntu--vg-ubuntu--lv 49G 46G 245M 100% /
tmpfs 2.0G 0 2.0G 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 2.0G 0 2.0G 0% /sys/fs/cgroup
/dev/vda2 976M 146M 764M 16% /boot
tmpfs 395M 0 395M 0% /run/user/1000
/dev/loop0 33M 33M 0 100% /snap/snapd/11402
/dev/loop1 62M 62M 0 100% /snap/core20/904
/dev/loop2 384K 384K 0 100% /snap/bpytop/216
All running on a Qnap TS-453D,64-bit x86, Intel® Celeron® J4125 quad-core 2.0 GHz processor, 8GB Mem. Using VirtualizationStation 3 VM, 6TB Disk Space Raid 5.
root@unbuntuserver3:/# pvs
PV VG Fmt Attr PSize PFree
/dev/vda3 ubuntu-vg lvm2 a-- <49.00g 0
root@unbuntuserver3:/# vgs
VG #PV #LV #SN Attr VSize VFree
ubuntu-vg 1 1 0 wz--n- <49.00g 0
root@unbuntuserver3:/# lvs
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
ubuntu-lv ubuntu-vg -wi-ao---- <49.00g
root@unbuntuserver3:/#
FYI, I also added the extra 250GB of disk space via the virtual station settings. However, because the 250GB did not show in my df -h I sarted attempting the use of lvextend cmd. Which I found here.
I am installing ubuntu server 18.04.5 and for speed sake, without GUI installed. So cannot use GParted.
I cannot figure out why ubuntu 18.04 is assigning a ip address of 127.0.0.1
I set my netplan
network:
version: 2
renderer: networkd
ethernets:
enp3s0:
dhcp4: true
any tips welcome
I am still learning. My intent with the following netplan/ubuntu setup was to change my ip address to my ubuntu VM server (ubuntu 18.04) so I cut and pasted the following:
network:
version: 2
renderer: networkd
ethernets:
enp0s3:
dhcp4: no
addresses: [192.168.0.215/24]
gateway4: 192.168.1.1
nameservers:
addresses: [8.8.8.8,8.8.4.4]
I am on a qnap NAS using VirtualizationStation 3. Now I cannot boot my ubuntu and I am presented with a login screen to what appears to be a login to libvirt Quem.
I am not sure what each line of this configuration does so could someone explain what each line does so I might be able to boot into ubuntu. As I researched everywhere I am sure this may help others as well.
I want to assign my ubuntu server 18.04 set with a static ip 192.168.0.225 could you please tell me what I should put in my 00-installer-config.yaml file. Thank you
Does this help?
root@unbuntuserver2://etc# ifconfig
ens3: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.0.210 netmask 255.255.255.0 broadcast 192.168.0.255
inet6 fe80::5054:ff:fef8:f9aa prefixlen 64 scopeid 0x20<link>
ether 52:54:00:f8:f9:aa txqueuelen 1000 (Ethernet)
RX packets 654103 bytes 234703817 (234.7 MB)
RX errors 0 dropped 41 overruns 0 frame 0
TX packets 53799 bytes 21638774 (21.6 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 765 bytes 775782 (775.7 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 765 bytes 775782 (775.7 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
ether 52:54:00:95:ab:d2 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
.... and Yes, I can reserve 192.168.0.225 on my router.
I am trying to understand why the ubuntu server is setup as an .img file within my NAS "/Public” directory.
I created a VM on my NAS and installed ubuntu server within the VM. When I installed ubuntu server I installed it in my NAS "/Public” directory. FYI, ubuntu installed fine. I can access the file system via ssh and have set up my web server just fine.
However, I cannot figure out how to access the ubuntu file system using my laptop. Where is it hiding? I looked inside my NAS "/Public” directory. but all I see is a ubuntu_server.img.
I researched on the internet but, I cannot seem to understand the concept of why an .img file was created when I installed ubuntu.
Could someone please explain the concept here?
I would also like to access my ubuntu server files using my laptop.
Thank You.
I want to run an index.cgi in my front end directory rather than an index.html. However the script does not run and only prints out the script in text. I am on running apache2 on ubuntu 18.04. What might I be doing wrong?
Why is 000-default.conf a symlink? lrwxrwxrwx 1 cole cole 35 Mar 3 10:36 000-default.conf -> ../sites-available/000-default.conf
I am trying to use notepad via WinSCP to edit and save my changes to 000-default.conf but I get an error when I save my charges. How can I accomplish this? I am handicap and have to do cut/paste then save and cannot use ssh to nano, etc.
Currently My /etc/apache2/sites-enabled/000-default.conf looks like this:
DocumentRoot /var/www/htm
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/
<Directory "/usr/lib/cgi-bin">
Options +ExecCGI
AddHandler cgi-script .cgi .pl
Options FollowSymLinks
Require all granted
</Directory>
I have multiple Domains that I want to access Port 80 on my Nas. On my Qnap Each Domain has its own folder titled “domain. com” with “.htaccess”, numerous “.html” containing <!—#exec cgi, <!--#include virtual, and each contain its own “cgi-bin" directory.
Could someone show me what my “.000-default.conf” should look like to accomplish my goals? Thanks!