New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No Networking in Qubes R4 AppVMs After Upgrade From R3.2 #4075

Closed
manasb opened this Issue Jul 13, 2018 · 7 comments

Comments

Projects
None yet
3 participants
@manasb

manasb commented Jul 13, 2018

Qubes OS version:

R4

Affected component(s):

AppVMs imported from Qubes R3.2 - This AppVM and the TemplateVM it is based on were imported from a R3.2 backup. fedora-28 in this case


Steps to reproduce the behavior:

  • Install Qubes R3.2
  • Upgrade included fedora template to fedora-28
  • Networking functions normally in Qubes R3.2 - all AppVMs have expected networking access
  • Backup AppVM
  • Install Qubes R4
  • Restore TemplateVMs and AppVMs from R3.2
  • Change repository for TemplateVMs to qubes-4 (I imported this from the fedora-26 template in Qubes R4 from the /etc/yum.repos.d/ directory as well as the PGP key in the /etc/pki/rpm-gpg directory)
  • Update all software in TemplateVM (my fedora-28 TemplateVM is able to fetch updates through dnf)
  • Ensure AppVM is set to use the sys-firewall NetVM (confirm both sys-firewall and sys-net can successfully make DNS queries and ping)
  • Start AppVM
  • ifconfig in AppVM only shows the loopback interface
  • AppVM can not access the internet
  • Qubes Manager however shows an IP, Netmask and Gateway for the AppVM

Expected behavior:

  • Functional networking in AppVM imported from a Qubes R3.2 backup

Actual behavior:

  • No network available in AppVMs imported from Qubes R3.2 backup

General notes:

Found some networking-related scripts in the /etc/xen directory on the fedora-26 TemplateVM that comes with R4 and copied them over to fedora-28, this did not help however.


Related issues:

@manasb

This comment has been minimized.

Show comment
Hide comment
@manasb

manasb Jul 13, 2018

I had used a fedora-28 StandaloneVM which was upgraded, backed up & restored in a similar way to write that last post. Now, after a reboot no programs from that StandaloneVM are working, I am able to sudo xl console <vm> into the system but no graphical programs will run and it too is now unable to access the network.

manasb commented Jul 13, 2018

I had used a fedora-28 StandaloneVM which was upgraded, backed up & restored in a similar way to write that last post. Now, after a reboot no programs from that StandaloneVM are working, I am able to sudo xl console <vm> into the system but no graphical programs will run and it too is now unable to access the network.

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Jul 13, 2018

Member

Make sure you have qubes-vm-recommended package installed there (if you haven't it there originally, install during upgrade). Check this for details about individual packages.

Member

marmarek commented Jul 13, 2018

Make sure you have qubes-vm-recommended package installed there (if you haven't it there originally, install during upgrade). Check this for details about individual packages.

@manasb

This comment has been minimized.

Show comment
Hide comment
@manasb

manasb Jul 13, 2018

@marmarek

Excellent! That fixed network connectivity for my AppVMs.
I'm thinking about how I could apply this to my StandaloneVM where the network doesn't work.. Any ideas?


Here was my attempt:

List last installed packages on the fedora-28 TemplateVM

rpm -qa --last

Download all the packages (I saved the package names as a file called packages)

cat packages | awk '{ print "dnf download --downloadonly --downloaddir=PACKAGES/ "$1 }' | parallel

Move all the packages to the StandaloneVM and install with:

sudo xl console <vm_name>
sudo dnf -C install ./*.rpm

manasb commented Jul 13, 2018

@marmarek

Excellent! That fixed network connectivity for my AppVMs.
I'm thinking about how I could apply this to my StandaloneVM where the network doesn't work.. Any ideas?


Here was my attempt:

List last installed packages on the fedora-28 TemplateVM

rpm -qa --last

Download all the packages (I saved the package names as a file called packages)

cat packages | awk '{ print "dnf download --downloadonly --downloaddir=PACKAGES/ "$1 }' | parallel

Move all the packages to the StandaloneVM and install with:

sudo xl console <vm_name>
sudo dnf -C install ./*.rpm
@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Jul 13, 2018

Member

You need to setup network manually (add IP address, default route, DNS) according to values in VM settings (DNS address is 10.139.1.1).

Member

marmarek commented Jul 13, 2018

You need to setup network manually (add IP address, default route, DNS) according to values in VM settings (DNS address is 10.139.1.1).

@manasb

This comment has been minimized.

Show comment
Hide comment
@manasb

manasb Jul 13, 2018

Networking is functioning in my StandaloneVM again, thank you. I did not try your instructions, I was able to resolve it by downloading the packages through the TemplateVM, shifting them over, installing and restarting the VM.

I am not able to run any programs in the StandaloneVM, however.
I have tried to do this through the Qubes Manager as well as with qvm-run. The command hangs and does not complete, a command such as qvm-run <vm> konsole does not start up the konsole terminal client.

The StandaloneVM is running and functional as far as I can tell, I am able to access the console and have verified that networking is working. I am not able to run any programs, though.

manasb commented Jul 13, 2018

Networking is functioning in my StandaloneVM again, thank you. I did not try your instructions, I was able to resolve it by downloading the packages through the TemplateVM, shifting them over, installing and restarting the VM.

I am not able to run any programs in the StandaloneVM, however.
I have tried to do this through the Qubes Manager as well as with qvm-run. The command hangs and does not complete, a command such as qvm-run <vm> konsole does not start up the konsole terminal client.

The StandaloneVM is running and functional as far as I can tell, I am able to access the console and have verified that networking is working. I am not able to run any programs, though.

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Jul 13, 2018

Member

Do you have qubes-vm-recommended installed now?

Member

marmarek commented Jul 13, 2018

Do you have qubes-vm-recommended installed now?

@manasb

This comment has been minimized.

Show comment
Hide comment
@manasb

manasb Jul 13, 2018

Yes:

$ sudo dnf list installed | grep -i qubes-vm-recommended
qubes-vm-recommended.noarch           4.0.2-1.fc28           @@commandline

Found some restore instructions here: https://github.com/Qubes-Community/Contents/blob/master/docs/system/restore-3.2.md

Will test and update this post.

These instructions fixed it.
Specifically, these two lines:

$ dnf install qubes-core-agent qubes-kernel-vm-support
$ systemctl enable qubes-gui-agent

Thanks for your help @marmarek
I will continue with my testing and make/update tickets as required.

manasb commented Jul 13, 2018

Yes:

$ sudo dnf list installed | grep -i qubes-vm-recommended
qubes-vm-recommended.noarch           4.0.2-1.fc28           @@commandline

Found some restore instructions here: https://github.com/Qubes-Community/Contents/blob/master/docs/system/restore-3.2.md

Will test and update this post.

These instructions fixed it.
Specifically, these two lines:

$ dnf install qubes-core-agent qubes-kernel-vm-support
$ systemctl enable qubes-gui-agent

Thanks for your help @marmarek
I will continue with my testing and make/update tickets as required.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment