Quantcast
Channel: Ubuntu Forums - Virtualisation
Viewing all 4211 articles
Browse latest View live

[ubuntu] Can't initially login to Ubuntu?

$
0
0
Hello guys,


I'm trying to obtain some knowledge in Linux and I wanted to start with the Ubuntu distro since I've worked with it previously.


The issue I'm facing is that I'm doing the deployment of the 22.0.4 (installed from the official site) to VMware Workstation Pro.


So when I create a new VM and select the Ubuntu ISO, the VMware wizard asks me for the machine name, a user, and a password. After filling in these fields, the Ubuntu machine starts booting up, but the thing is that as soon as the machine boots up it instantly forwards me to the login to the machine menu, asking for a user and a password, instead of the setup wizard ( where we would put things such as location, disk install settings and probably the creation of the actually user name). So basically
The machine goes from initial boot to log in instantly, I've looked for default credentials, and I've tried the credentials that I inserted in the VMware wizard but none of these works, I can't seem to be able to login to the machine and I found it weird that I didn't face the actual ubuntu initial setup.


Thanks in advance for your help. I'll leave two prints on this case that are the only two prompts where I have possible interaction, So I transitioned from the VMware wizard instantly to the Ubuntu login page.


Regards
Salvador Monteiro
Attached Images

KVM - Cannot access shared host folder from guest

$
0
0
Hi,
I have an Ubuntu 22.04 host running KVM. A guest is also running Ubuntu 22.04. I have configured a folder to be shared with the following configuration on the host:

Code:

<filesystem type="mount" accessmode="passthrough">
  <driver type="virtiofs"/>
  <binary path="/usr/lib/qemu/virtiofsd"/>
  <source dir="/mnt/data"/>
  <target dir="/data"/>
  <alias name="fs0"/>
  <address type="pci" domain="0x0000" bus="0x06" slot="0x00" function="0x0"/>
</filesystem>

This has been working fine, but today I've begun having problems connecting to the shared folder. I can mount the drive from the guest with this command:

Code:

sudo mount -t virtiofs /data /mnt/data
However, attempting to navigate to the folder results in an error:

Code:

-bash: cd: data: Connection refused
Attempting to view permissions on the folder also results in an error:

Code:

$ ls -al
ls: cannot access 'data': Connection refused
total 8
drwxr-xr-x  3 root root 4096 Sep  7 22:53 .
drwxr-xr-x 20 root root 4096 Aug 24 22:03 ..
d?????????  ? ?    ?      ?            ? data

[ubuntu] systemd-networkd-wait-online.service failed

$
0
0
Running a VM of Ubuntu 22.04.3 LTS. I just encountered systemd-networkd-wait-online.service failed. Not sure how or why this happened as it's been running fine up until now. Anyone know how to fix this?

Code:

┌─[administrator@ubuntusrv]─[~]
└──╼ $systemctl --type=service --state=failed
  UNIT                                LOAD  ACTIVE SUB    DESCRIPTION
● systemd-networkd-wait-online.service loaded failed failed Wait for Network to be Configured

LOAD  = Reflects whether the unit definition was properly loaded.
ACTIVE = The high-level unit activation state, i.e. generalization of SUB.
SUB    = The low-level unit activation state, values depend on unit type.
1 loaded units listed.
┌─[administrator@ubuntusrv]─[~]
└──╼ $sudo systemctl restart systemd-networkd-wait-online
[sudo] password for administrator:
Job for systemd-networkd-wait-online.service failed because the control process exited with error code.
See "systemctl status systemd-networkd-wait-online.service" and "journalctl -xeu systemd-networkd-wait-online.service" for details.
┌─[✗]─[administrator@ubuntusrv]─[~]
└──╼ $systemctl status systemd-networkd-wait-online.service
× systemd-networkd-wait-online.service - Wait for Network to be Configured
    Loaded: loaded (/etc/systemd/system/systemd-networkd-wait-online.service; enabled; vendor preset: disabled)
    Active: failed (Result: exit-code) since Thu 2023-09-21 22:36:52 PST; 3min 31s ago
      Docs: man:systemd-networkd-wait-online.service(8)
    Process: 143981 ExecStart=/lib/systemd/systemd-networkd-wait-online --any (code=exited, status=1/FAILURE)
  Main PID: 143981 (code=exited, status=1/FAILURE)
        CPU: 3ms

Sep 21 22:34:52 ubuntusrv systemd[1]: Starting Wait for Network to be Configured...
Sep 21 22:36:52 ubuntusrv systemd-networkd-wait-online[143981]: Timeout occurred while waiting for network connectivity.
Sep 21 22:36:52 ubuntusrv systemd[1]: systemd-networkd-wait-online.service: Main process exited, code=exited, status=1/FAILURE
Sep 21 22:36:52 ubuntusrv systemd[1]: systemd-networkd-wait-online.service: Failed with result 'exit-code'.
Sep 21 22:36:52 ubuntusrv systemd[1]: Failed to start Wait for Network to be Configured.
┌─[✗]─[administrator@ubuntusrv]─[~]
└──╼ $journalctl -xeu systemd-networkd-wait-online.service
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ The unit systemd-networkd-wait-online.service has entered the 'failed' state with result 'exit-code'.
Sep 21 16:46:36 ubuntusrv systemd[1]: Failed to start Wait for Network to be Configured.
░░ Subject: A start job for unit systemd-networkd-wait-online.service has failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit systemd-networkd-wait-online.service has finished with a failure.
░░
░░ The job identifier is 12 and the job result is failed.
Sep 21 22:34:52 ubuntusrv systemd[1]: Starting Wait for Network to be Configured...
░░ Subject: A start job for unit systemd-networkd-wait-online.service has begun execution
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit systemd-networkd-wait-online.service has begun execution.
░░
░░ The job identifier is 3334.
Sep 21 22:36:52 ubuntusrv systemd-networkd-wait-online[143981]: Timeout occurred while waiting for network connectivity.
Sep 21 22:36:52 ubuntusrv systemd[1]: systemd-networkd-wait-online.service: Main process exited, code=exited, status=1/FAILURE
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ An ExecStart= process belonging to unit systemd-networkd-wait-online.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 1.
Sep 21 22:36:52 ubuntusrv systemd[1]: systemd-networkd-wait-online.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ The unit systemd-networkd-wait-online.service has entered the 'failed' state with result 'exit-code'.
Sep 21 22:36:52 ubuntusrv systemd[1]: Failed to start Wait for Network to be Configured.
░░ Subject: A start job for unit systemd-networkd-wait-online.service has failed
░░ Defined-By: systemd
░░ Support: http://www.ubuntu.com/support
░░
░░ A start job for unit systemd-networkd-wait-online.service has finished with a failure.
░░
░░ The job identifier is 3334 and the job result is failed.
┌─[administrator@ubuntusrv]─[~]
└──╼ $lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04.3 LTS
Release:        22.04
Codename:      jammy
┌─[administrator@ubuntusrv]─[~]
└──╼ $uname -r
6.3.3-060303-generic

[ubuntu] OS freezes frequently

$
0
0
Hi all,

Oracle VirtualBox
Host - Ubuntu 22.04
VM/Guest - Ubuntu 22.04

Starting
Oracle VM VirtualBox Manager - Ubuntu VM
Settings ->
select System/Display/etc.

It freezes the OS. I have to press Hard-reboot.

Please advise where I have to check? Thanks

Regards

[ubuntu] Wayland stuck on Ubuntu jammy VBox guest after screen unlock on Windows host

$
0
0
Hi,

I have an Ubuntu 22.04 VM running on VirtualBox 7.0.10, the host OS being Windows 10. Ubuntu was installed from scratch (not updated from a previous version), the default GNOME flavor, and it seems to be using Wayland. Now, the Windows screen locks after a certain timeout and I've noticed that most times, when unlocking the (Windows) screen, the Ubuntu UI seems hung: the keys don't seem to be working and neither is the mouse. I can, however, go to a tty console (Ctrl-Alt-F3, I was confused that C-A-F1 did not work anymore and first thought the OS was stuck) and from there reboot. Is this a known problem? Is there a way to restart wayland from the console, rather than restarting the machine?

[ubuntu_mate] qemu Shared Folder

$
0
0
I am trying to share a folder on my ubuntu 22.04 host and a folder on my ubuntu 22.04 qemu vm. On my host I have created /home/dad/vmhost and on the vm created /home/dad/hostshare

I have been following various gui (youtube) and text instructions. I get to the point on the vm where I type:

sudo mount -t 9p -o trans=virtio /sharepoint hostshare

when I enter that command I get:

mount: /home/dad/hostshare: bad option; for several filesystems (e.g. nfs, cifs) you might need a /sbin/mount.<type> helper program.

Any advice appreciated.

After switching to full-screen the system becomes unstable

$
0
0
After switching to full-screen mode on Oracle VM VirtualBox, the system becomes unstable.
Code:

hubble@main01:~$ lsb_release -a
No LSB modules are available.
Distributor ID:    Ubuntu
Description:    Ubuntu 22.04.2 LTS
Release:    22.04
Codename:    jammy
hubble@main01:~$ VBoxManage --version
6.1.38_Ubuntur153438
hubble@main01:~$

I have the Guest Additions installed.

[ubuntu] confused with Xen install into existing ubuntu

$
0
0
I'm trying to learn docker through a course. During the course you need VMs. I know the easiest way is Virtual Box, but I know that Xen is the basis of all container technology (if I understand it correctly). So if I can do it that way, I would like to. My machine, is a few years old but has plenty of processing power. Less disk space than I would like.
I've read a little bit about how a hypervisor works, but at the practical use level, I'm confused. Is Xen headless, I know it can be, but does it force it? I can't follow the instructions exactly from that link, because I'm already on Ubuntu. It came that way from Dell. I don't want to bother doing a full reinstallation of everything right now. I want to complete my course, preferably with Xen.
I can't do "During installation of Ubuntu"... I did install Xen and tried to reboot, and got the no signal. Is that normal, or because I missed something in the order of operations? I did go through and enable everything I saw in the bios for virtualization. When googled I found (https://askubuntu.com/questions/1317...r-installation) which had no useful responses.
I've been reading various web pages, but I'm a bit confused. Most say just install, reboot, then

https://help.ubuntu.com/community/Xen

I've been trying to check somethings from other pages, but I'm still confused.


%sudo apt search grub|grep "^grub"|grep "installed"
grub-common/jammy-updates,now 2.06-2ubuntu7.2 amd64 [installed,automatic]
grub-efi-amd64/jammy-updates,jammy-security,now 2.06-2ubuntu14.1 amd64 [installed,automatic]
grub-efi-amd64-bin/jammy-updates,jammy-security,now 2.06-2ubuntu14.1 amd64 [installed]
grub-efi-amd64-signed/jammy-updates,jammy-security,now 1.187.3~22.04.1+2.06-2ubuntu14.1 amd64 [installed]
grub-xen-bin/jammy-updates,now 2.06-2ubuntu7.2 amd64 [installed,automatic]
grub-xen-host/jammy-updates,now 2.06-2ubuntu7.2 amd64 [installed,automatic] grub2-common/jammy-updates,now 2.06-2ubuntu7.2 amd64 [installed,automatic]

% sudo apt search grub|grep xen
grub-xen/jammy-updates 2.06-2ubuntu7.2 amd64
grub-xen-bin/jammy-updates,now 2.06-2ubuntu7.2 amd64 [installed,automatic]
grub-xen-dbg/jammy-updates 2.06-2ubuntu7.2 amd64
grub-xen-host/jammy-updates,now 2.06-2ubuntu7.2 amd64 [installed,automatic]

boot directory
$ ls -larth /boot/
total 355M
drwx------ 4 root root 4.0K Dec 31 1969 efi
-rw-r--r-- 1 root root 8.0M Apr 29 2019 vmlinuz-4.15.0-1037-oem.efi.signed
-rw-r--r-- 1 root root 181K Feb 6 2022 memtest86+_multiboot.bin
-rw-r--r-- 1 root root 181K Feb 6 2022 memtest86+.elf
-rw-r--r-- 1 root root 179K Feb 6 2022 memtest86+.bin
-rw-r--r-- 1 root root 1.2M Nov 26 2022 xen-4.16-amd64.gz
-rw-r--r-- 1 root root 2.7M Nov 26 2022 xen-4.16-amd64.efi
-rw-r--r-- 1 root root 2.2K Nov 26 2022 xen-4.16-amd64.config
-rw------- 1 root root 6.0M Aug 14 04:05 System.map-5.15.0-83-generic
-rw-r--r-- 1 root root 256K Aug 14 04:05 config-5.15.0-83-generic
-rw------- 1 root root 12M Aug 14 04:07 vmlinuz-5.15.0-83-generic
-rw-r--r-- 1 root root 154M Sep 5 06:32 initrd.img-5.15.0-83-generic
-rw------- 1 root root 6.0M Sep 5 08:31 System.map-5.15.0-84-generic
-rw-r--r-- 1 root root 256K Sep 5 08:31 config-5.15.0-84-generic
-rw------- 1 root root 12M Sep 5 11:57 vmlinuz-5.15.0-84-generic
lrwxrwxrwx 1 root root 25 Sep 20 06:38 vmlinuz.old -> vmlinuz-5.15.0-83-generic
lrwxrwxrwx 1 root root 25 Sep 20 06:38 vmlinuz -> vmlinuz-5.15.0-84-generic
lrwxrwxrwx 1 root root 28 Sep 20 06:38 initrd.img.old -> initrd.img-5.15.0-83-generic
lrwxrwxrwx 1 root root 28 Sep 20 06:38 initrd.img -> initrd.img-5.15.0-84-generic
drwxr-xr-x 5 root root 4.0K Sep 20 06:39 grub
-rw-r--r-- 1 root root 154M Sep 25 11:13 initrd.img-5.15.0-84-generic
drwxr-xr-x 4 root root 4.0K Sep 25 11:13 .
drwxr-xr-x 23 root root 4.0K Sep 27 13:04 ..

Sorry didn't paste right
# # Automatically generated file; DO NOT EDIT. # Xen/x86 4.16.0 Configuration # CONFIG_CC_IS_GCC=y CONFIG_GCC_VERSION=110300 CONFIG_CLANG_VERSION=0 CONFIG_CC_HAS_VISIBILITY_ATTRIBUTE=y CONFIG_X86_64=y CONFIG_X86=y CONFIG_ARCH_DEFCONFIG="arch/x86/configs/x86_64_defconfig" CONFIG_INDIRECT_THUNK=y CONFIG_HAS_AS_CET_SS=y # # Architecture Features # CONFIG_64BIT=y CONFIG_NR_CPUS=256 CONFIG_PV=y # CONFIG_PV32 is not set CONFIG_PV_LINEAR_PT=y CONFIG_HVM=y CONFIG_SHADOW_PAGING=y # CONFIG_BIGMEM is not set CONFIG_TBOOT=y CONFIG_XEN_ALIGN_DEFAULT=y # CONFIG_XEN_ALIGN_2M is not set # CONFIG_XEN_GUEST is not set # CONFIG_HYPERV_GUEST is not set # end of Architecture Features # # Common Features # CONFIG_COMPAT=y CONFIG_CORE_PARKING=y CONFIG_GRANT_TABLE=y CONFIG_ALTERNATIVE_CALL=y CONFIG_HAS_ALTERNATIVE=y CONFIG_HAS_COMPAT=y CONFIG_HAS_EX_TABLE=y CONFIG_HAS_FAST_MULTIPLY=y CONFIG_HAS_IOPORTS=y CONFIG_HAS_KEXEC=y CONFIG_HAS_PDX=y CONFIG_HAS_SCHED_GRANULARITY=y CONFIG_HAS_UBSAN=y CONFIG_MEM_ACCESS_ALWAYS_ON=y CONFIG_MEM_ACCESS=y CONFIG_NEEDS_LIBELF=y # # Speculative hardening # CONFIG_SPECULATIVE_HARDEN_ARRAY=y CONFIG_SPECULATIVE_HARDEN_BRANCH=y CONFIG_SPECULATIVE_HARDEN_GUEST_ACCESS=y # end of Speculative hardening CONFIG_HYPFS=y CONFIG_HYPFS_CONFIG=y CONFIG_IOREQ_SERVER=y CONFIG_KEXEC=y CONFIG_XENOPROF=y # CONFIG_XSM is not set CONFIG_SCHED_CREDIT=y CONFIG_SCHED_CREDIT2=y CONFIG_SCHED_DEFAULT="credit2" CONFIG_CRYPTO=y CONFIG_LIVEPATCH=y CONFIG_FAST_SYMBOL_LOOKUP=y CONFIG_ENFORCE_UNIQUE_SYMBOLS=y CONFIG_CMDLINE="" CONFIG_DOM0_MEM="" CONFIG_TRACEBUFFER=y # end of Common Features # # Device Drivers # CONFIG_ACPI=y CONFIG_ACPI_LEGACY_TABLES_LOOKUP=y CONFIG_NUMA=y CONFIG_HAS_NS16550=y CONFIG_HAS_EHCI=y CONFIG_HAS_CPUFREQ=y CONFIG_HAS_PASSTHROUGH=y # CONFIG_IOMMU_QUARANTINE_NONE is not set CONFIG_IOMMU_QUARANTINE_BASIC=y # CONFIG_IOMMU_QUARANTINE_SCRATCH_PAGE is not set CONFIG_HAS_PCI=y CONFIG_HAS_PCI_MSI=y CONFIG_VIDEO=y CONFIG_VGA=y CONFIG_HAS_VPCI=y # end of Device Drivers # CONFIG_EXPERT is not set # CONFIG_UNSUPPORTED is not set CONFIG_ARCH_SUPPORTS_INT128=y # # Debugging Options # # CONFIG_DEBUG is not set # end of Debugging Options

Using DDEV in WSL without being Windows admin

$
0
0
Hi,We have a Win 11 PC used by a developer (Jhon) and administered by an IT admin (Frank).
On this PC we have WSL, on which runs Ubuntu (administered directly by Jhon), on which runs DDEV.
When Jhon creates a new DDEV project, DDEV tries to run GSUDO, for which the Windows admin password (Frank's password) is requested.
How does Frank get Jhon to do his work without being called to insert the password for every new project and without making jhon a Win 11 admin?
Is it possible to state that GSUDO may be run without Windows admin password?
Thank you!

[ubuntu] VM/guest unable to resize screen

$
0
0
Hi all,

VirtualBox

Host - Ubuntu 22.04 desktop

VMs
Ubuntu 22.04 desktop
Win 10 Home
Win 11

Drive: PCIe MVNe 3.0 SSD

Just discovered in recent 2~3 days that all VMs are unable to increase screen size, dragging with mouse. It finally turns to a black screen then collapses (aborted)

They were working without problem before. Please advise where I have to check. Thanks

Regards

Use both vmware anf QEMU KVM virt-manager

$
0
0
Hi,
I wonder if there is any problem rumnning both vmvare player and vitmanagert(QEMU + KVM) on ubuntu host, found several info stating they cannot work together but they are working, do I have to expect some sudden crash or data corruption using them both together?

multipass auto-mounting fails (Socket error: disconnected), manual mounting succeeds

$
0
0
Hi all!

My multipass installation is working OK, despite one issue: After mounting a directory successfully manually, when shutting down the (primary) VM instance and starting it up again it fails to re-mount with error:
Removing mount "/aaa/bbb/ccc" from 'primary': ssh failed to authenticate: 'Socket error: disconnected'
(directory redacted as /aaa/bbb/ccc)


So I start an instance, mount a folder (works), then stop the instance and start it up again and instead of the folder getting auto-mounted again I get the error...
If I then try to manually mount, it works.

Anyone any idea?

The network setup seems to be OK:
- http connection from the host OS into the instance works as expected
- Network connections from inside the instance to the internet also work as expected

`multipass shell` also works as expected.

Any help would be greatly appreciated!

Regards
Johannes


Additional info
OS: Ventura 13.6 (22G120)
multipass version: multipass 1.12.2+mac / multipassd 1.12.2+mac

multipass info --all:
Name: primary
State: Running
IPv4: 192.168.64.10
Release: Ubuntu 22.04.3 LTS
Image hash: 5167c1b13cb3 (Ubuntu 22.04 LTS)
CPU(s): 4
Load: 0.08 0.11 0.14
Disk usage: 4.8GiB out of 69.7GiB
Memory usage: 1.9GiB out of 3.8GiB
Mounts: /Users/valerianquell/Developer/workspace/kencube => /var/www/KenCube_source
UID map: 501:33
GID map: 20:33


multipass get local.driver
qemu

[server] LXD passthrough AMD GPU on Ubuntu Server

$
0
0
I have seen only posts all over the web about using an Nvidia card (even Intel) with an LXD VM, but nothing about using an AMD card on a headless host.
I'm using the LXD Web UI:
  • Allow GPU devices in LXD (Under Configuration > Device usage)
  • I create a simple VM with desktop, no special settings.
  • Starts fine
  • I add this to the instance config under devices:

HTML Code:

gpu:
  type: gpu
  pci: '0000:09:00.0'

The VM just fails to start after adding the GPU config. Any help/suggestions is welcome.

Telnet ssh handler

$
0
0
Telnet Handler
Hi
i run eve-eng (simulator network) on vmware , and coonect to the with firefox and ip address when , i add node (switch or router) when click on them it must be open telnet consloe or ssh consloe , i searche in internet about them telnet handler and , i change something like that but not work !
can i help me?eve

Ubuntu 23.10 fails to install VBoxLinuxadditions

$
0
0
Ubuntu 23.10 fails to install Virtualbox Linuxaddditions (VBox 7.0.10 on Ubuntu 22.04.3).

vboxadd-setup.log:
Building the main Guest Additions 7.0.10 module for kernel 6.5.0-9-generic.
Building the shared folder support module.
Building the graphics driver module.
Error building the module. Build output follows.
make V=1 CONFIG_MODULE_SIG= CONFIG_MODULE_SIG_ALL= -C /lib/modules/6.5.0-9-generic/build M=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 -j2 modules
make[1]: warning: -j2 forced in submake: resetting jobserver mode.
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.2.0
You are using: gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.2.0

Prereqs installed: normally gcc make would do. Not anymore. Tried also build-essentials, dkms. Same errors in log.

How to get x86_64-linux-gnu-gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.2.0?

[ubuntu_mate] Virtual Bridge - Time to Connect

$
0
0
Prior to my recent change to having bridge networking, rather than NAT, for my host/VMs I have, for years, been impressed that as soon as my Desktop launched I could fire-up a browser and surf the net (almost an instant connection). Having set up a virtual bridge it takes a long time - I haven't timed it but it must be in the region of 10 seconds. Is this the norm?

I can't login

$
0
0
I fixed my password on the Ubuntu site but on the vm machine it won't login,

said that password had been reset

VM; "Mount: bad usage"

$
0
0
The task is to open a vehicle repair manual which is a .OVA file l inside a virtual machine.
The process of using Virtual Box was not successful. While searching for a solution, I was convinced to learn how to use KVM instead.
Many YouTube and Ask Ubuntu posts have been studied. So far, I have been successful in creating a VM and using virt-manager I have opened Ubuntu 22.04 inside the VM.

The next process is to access the .OVA file that is located in the host machine (ASUS laptop running 18.04LTS).
I took notice of two posts that said to use in terminal:
Code:

sudo mount -t 9p -o trans=virtio /VMShare Shared
Where "VMShare" is the source folder in the host and "Shared" is the VM's destination file. The setup steps within virt-manager that named these files involved a 3rd file name that leaves me questioning the correctness of this.

The result is:
Code:

mount: bad usage

'Try mount --help' for more info

I have doubled back through the process of setting this up and checked the file names as well as the code text used in terminal. I still get the same result. The mount help does not point me to a solution.

Thoughts, analysis, suggestions?

Thank you for reading this post.

[SOLVED] Keep Losing LVM Snapshot

$
0
0
I have just started to take snapshots of my VMs - specifically creating snapshot of a test VM to get use to the whole snapshot 'thing'. So far I have twice created a snapshot, tested it by making changes to the VM and then reverting back via the snapshot - and it works! Problem is the snapshot then disappears! I have some confusion where the snapshot(s) is/are located but from what I have gleaned so far the snapshot is created in the volume group where the LV is. Here are my LVs

Code:

dad@dadubuntu:~$ sudo lvs
  LV        VG  Attr      LSize  Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  home      vg01 -wi-ao----  50.00g                                                   
  root      vg01 -wi-ao----  40.00g                                                   
  swap      vg01 -wi-ao----  8.00g                                                   
  ubuntuvm  vg01 -wi-a-----  40.00g                                                   
  win10    vg01 -wi-a-----  50.00g                                                   
  workspace vg01 -wi-a----- 250.00g

The two LVs I am using for testing are ubuntuvm and win10. All the other LVs are part of my live system. Yesterday I created a snapshot of ubuntuvm called ubuntuvm_snap - it was stored in /dev/vg01 (I have no other Volume Groups on this machine). Indeed, yesterday I tested the snapshot using the command sudo lvconvert –-merge /dev/vg01/ubuntuvm_snap and everything worked fine. Today I have made some changes to ubuntuvm and messed things up a bit so want to go back to when I took the snapshot yesterday. But, to me at least, the snapshot is no longer there

Code:

dad@dadubuntu:~$ cd /dev/vg01
dad@dadubuntu:/dev/vg01$ ls
home  root  swap  ubuntuvm  win10  workspace
dad@dadubuntu:/dev/vg01$

Seems to me I'm doing something fundamentally wrong in my snapshot creating process. (To create the snapshot I used sudo lvcreate -L 5G -s -n ubuntuvm_snap /dev/vg01/ubuntuvm).

LXD, how to assign networks-to-profiles-to-instance?

$
0
0
I'm having an issue trying to get instances to talk to each other. I create two LXD neworks.

Code:

$ lxc network create lanA ipv4.address=192.168.1.1/24 ipv6.address=none ipv4.dhcp=true
$ lxc network create wanA ipv4.address=10.10.10.1/24 ipv6.address=none

I then create a profile for each instance type. The first, I'm trying to get ip's on two different interfaces, one for the local lan, and a second to route across a simulated wan (not yet created).

Code:

$ lxc profile create profile1
$ lxc profile device add profile1 root disk path=/ pool=default
$ lxc profile device add profile1 intA nic name=enp1s0 network=lanA
$ lxc profile device add profile1 intB nic name=enp2s0 network=wanA

On the second, just a single interface.
Code:

$ lxc profile create profile2
$ lxc profile device add profile2 root disk path=/ pool=default
$ lxc profile device add profile2 intA nic name=enp1s0 network=lanA

I then launch two instances with these profiles.

Code:

$ lxc launch ubuntu:20.04 instB --profile profile2
$ lxc launch ubuntu:20.04 instA --profile profile1

The problem is that when I run `lxc list`, I don't see any ip's in the IPV4 column. Is this not a valid use of profiles? If I could get this to work, then I would create a wanB, lanB just like lanA and wanA, and have a lanA-wanA-wanB-lanB routed network which is my goal.

Thanks for any help.
Viewing all 4211 articles
Browse latest View live