#StackBounty: #linux #virtual-machines #hyper-v #rhel7 #bare-metal Installed OS to external drive using a VM, now won't boot on bar…

Bounty: 50

I have a USB hard drive. (The USB connector for that drive is actually super flaky and disconnects if you breathe on it too hard, but I don’t think that’s the problem here.)

I have a laptop without a DVD drive, and only one USB port. (Actually, it has more USB ports, but they seem to not work. Hmm, why is everything broken? Come to think of it, the USB cable was my fault, but I think the USB ports came that way.)

I tried to follow the instructions here, adapted to my situation: https://developers.redhat.com/products/rhel/hello-world/.

In particular, I downloaded the bootable ISO, created a virtual machine in Hyper-V on Windows 10 (Professional), and told it to boot from the ISO and install to my external drive. The installation succeed and eventually I saw a pretty GUI prompting me to log in. I then shut down the VM and declared victory.

This turned out to be premature. When I try booting from my USB drive, the boot process begins, but it never completes, and doesn’t even seem to get very far. It announces the name of the OS (in particular, Red Hat Enterprise Linux 7), so it’s not totally broken, but something is still wrong and I don’t know what.


Get this bounty!!!

#StackBounty: #linux #networking #firewall #linux-networking #firewalld Firewalld forward port with VirtualBox IP is always 10.0.2.2, d…

Bounty: 50

I am trying to setup web server with virtual box in it.

This is my setup:

# this does nothing
firewall-cmd --zone=public --add-port=80/tcp --permanent 
firewall-cmd --zone=public --add-forward-port=port=80:proto=tcp:toport=8080 --permanent
# with masquerade on/off, zone=external, no change
firewall-cmd --zone=public --add-masquerade --permanent
firewall-cmd --reload

I have net.ipv4.ip_forward = 1 in /etc/sysctl.conf

  • Host machine (Centos 7) port: 80
  • VirtualBox (Ubuntu 16.04) port: 8080

It works, but virtual machine sees all communication coming from 10.0.2.2. How to make host machine firewall not dropping the source IP?

I am sure it’s possible without changing virtualbox configuration. I rebuild system using automated scripts, it used to work.

What am I missing? I don’t want to use bridge on vm

Edit: I also tried switching zone to ‘external’ and realized MASQUERADE is not to be found in iptables


Get this bounty!!!

#StackBounty: #linux #networking #firewall #linux-networking #firewalld Firewalld and masquerading with VirtualBox IP is always 10.0.2….

Bounty: 50

I am trying to setup web server with virtual box in it.

This is my setup:

# this does nothing
firewall-cmd --zone=public --add-port=80/tcp --permanent 
firewall-cmd --zone=public --add-forward-port=port=80:proto=tcp:toport=8080 --permanent
# with masquerade on/off, zone=external, no change
firewall-cmd --zone=public --add-masquerade --permanent
firewall-cmd --reload

I have net.ipv4.ip_forward = 1 in /etc/sysctl.conf

  • Host machine (Centos 7) port: 80
  • VirtualBox (Ubuntu 16.04) port: 8080

It works, but virtual machine sees all communication coming from 10.0.2.2. How to make host machine firewall not dropping the source IP?

I am sure it’s possible without changing virtualbox configuration. I rebuild system using automated scripts, it used to work.

What am I missing? I don’t want to use bridge on vm

Edit: I also tried switching zone to ‘external’ and realized MASQUERADE is not to be found in iptables


Get this bounty!!!

#StackBounty: #linux #virtual-machines #hyper-v #rhel7 #bare-metal Installed OS to external drive using a VM, now won't boot on bar…

Bounty: 50

I have a USB hard drive. (The USB connector for that drive is actually super flaky and disconnects if you breathe on it too hard, but I don’t think that’s the problem here.)

I have a laptop without a DVD drive, and only one USB port. (Actually, it has more USB ports, but they seem to not work. Hmm, why is everything broken? Come to think of it, the USB cable was my fault, but I think the USB ports came that way.)

I tried to follow the instructions here, adapted to my situation: https://developers.redhat.com/products/rhel/hello-world/.

In particular, I downloaded the bootable ISO, created a virtual machine in Hyper-V on Windows 10 (Professional), and told it to boot from the ISO and install to my external drive. The installation succeed and eventually I saw a pretty GUI prompting me to log in. I then shut down the VM and declared victory.

This turned out to be premature. When I try booting from my USB drive, the boot process begins, but it never completes, and doesn’t even seem to get very far. It announces the name of the OS (in particular, Red Hat Enterprise Linux 7), so it’s not totally broken, but something is still wrong and I don’t know what.


Get this bounty!!!

#StackBounty: #linux #virtual-machines #hyper-v #rhel7 #bare-metal Installed OS to external drive using a VM, now won't boot on bar…

Bounty: 50

I have a USB hard drive. (The USB connector for that drive is actually super flaky and disconnects if you breathe on it too hard, but I don’t think that’s the problem here.)

I have a laptop without a DVD drive, and only one USB port. (Actually, it has more USB ports, but they seem to not work. Hmm, why is everything broken? Come to think of it, the USB cable was my fault, but I think the USB ports came that way.)

I tried to follow the instructions here, adapted to my situation: https://developers.redhat.com/products/rhel/hello-world/.

In particular, I downloaded the bootable ISO, created a virtual machine in Hyper-V on Windows 10 (Professional), and told it to boot from the ISO and install to my external drive. The installation succeed and eventually I saw a pretty GUI prompting me to log in. I then shut down the VM and declared victory.

This turned out to be premature. When I try booting from my USB drive, the boot process begins, but it never completes, and doesn’t even seem to get very far. It announces the name of the OS (in particular, Red Hat Enterprise Linux 7), so it’s not totally broken, but something is still wrong and I don’t know what.


Get this bounty!!!

#StackBounty: #linux #virtual-machines #hyper-v #rhel7 #bare-metal Installed OS to external drive using a VM, now won't boot on bar…

Bounty: 50

I have a USB hard drive. (The USB connector for that drive is actually super flaky and disconnects if you breathe on it too hard, but I don’t think that’s the problem here.)

I have a laptop without a DVD drive, and only one USB port. (Actually, it has more USB ports, but they seem to not work. Hmm, why is everything broken? Come to think of it, the USB cable was my fault, but I think the USB ports came that way.)

I tried to follow the instructions here, adapted to my situation: https://developers.redhat.com/products/rhel/hello-world/.

In particular, I downloaded the bootable ISO, created a virtual machine in Hyper-V on Windows 10 (Professional), and told it to boot from the ISO and install to my external drive. The installation succeed and eventually I saw a pretty GUI prompting me to log in. I then shut down the VM and declared victory.

This turned out to be premature. When I try booting from my USB drive, the boot process begins, but it never completes, and doesn’t even seem to get very far. It announces the name of the OS (in particular, Red Hat Enterprise Linux 7), so it’s not totally broken, but something is still wrong and I don’t know what.


Get this bounty!!!

#StackBounty: #linux #virtual-machines #hyper-v #rhel7 #bare-metal Installed OS to external drive using a VM, now won't boot on bar…

Bounty: 50

I have a USB hard drive. (The USB connector for that drive is actually super flaky and disconnects if you breathe on it too hard, but I don’t think that’s the problem here.)

I have a laptop without a DVD drive, and only one USB port. (Actually, it has more USB ports, but they seem to not work. Hmm, why is everything broken? Come to think of it, the USB cable was my fault, but I think the USB ports came that way.)

I tried to follow the instructions here, adapted to my situation: https://developers.redhat.com/products/rhel/hello-world/.

In particular, I downloaded the bootable ISO, created a virtual machine in Hyper-V on Windows 10 (Professional), and told it to boot from the ISO and install to my external drive. The installation succeed and eventually I saw a pretty GUI prompting me to log in. I then shut down the VM and declared victory.

This turned out to be premature. When I try booting from my USB drive, the boot process begins, but it never completes, and doesn’t even seem to get very far. It announces the name of the OS (in particular, Red Hat Enterprise Linux 7), so it’s not totally broken, but something is still wrong and I don’t know what.


Get this bounty!!!

#StackBounty: #linux #virtual-machines #hyper-v #rhel7 #bare-metal Installed OS to external drive using a VM, now won't boot on bar…

Bounty: 50

I have a USB hard drive. (The USB connector for that drive is actually super flaky and disconnects if you breathe on it too hard, but I don’t think that’s the problem here.)

I have a laptop without a DVD drive, and only one USB port. (Actually, it has more USB ports, but they seem to not work. Hmm, why is everything broken? Come to think of it, the USB cable was my fault, but I think the USB ports came that way.)

I tried to follow the instructions here, adapted to my situation: https://developers.redhat.com/products/rhel/hello-world/.

In particular, I downloaded the bootable ISO, created a virtual machine in Hyper-V on Windows 10 (Professional), and told it to boot from the ISO and install to my external drive. The installation succeed and eventually I saw a pretty GUI prompting me to log in. I then shut down the VM and declared victory.

This turned out to be premature. When I try booting from my USB drive, the boot process begins, but it never completes, and doesn’t even seem to get very far. It announces the name of the OS (in particular, Red Hat Enterprise Linux 7), so it’s not totally broken, but something is still wrong and I don’t know what.


Get this bounty!!!

#StackBounty: #linux #virtual-machines #hyper-v #rhel7 #bare-metal Installed OS to external drive using a VM, now won't boot on bar…

Bounty: 50

I have a USB hard drive. (The USB connector for that drive is actually super flaky and disconnects if you breathe on it too hard, but I don’t think that’s the problem here.)

I have a laptop without a DVD drive, and only one USB port. (Actually, it has more USB ports, but they seem to not work. Hmm, why is everything broken? Come to think of it, the USB cable was my fault, but I think the USB ports came that way.)

I tried to follow the instructions here, adapted to my situation: https://developers.redhat.com/products/rhel/hello-world/.

In particular, I downloaded the bootable ISO, created a virtual machine in Hyper-V on Windows 10 (Professional), and told it to boot from the ISO and install to my external drive. The installation succeed and eventually I saw a pretty GUI prompting me to log in. I then shut down the VM and declared victory.

This turned out to be premature. When I try booting from my USB drive, the boot process begins, but it never completes, and doesn’t even seem to get very far. It announces the name of the OS (in particular, Red Hat Enterprise Linux 7), so it’s not totally broken, but something is still wrong and I don’t know what.


Get this bounty!!!

#StackBounty: #linux #debian #hdmi #nvidia-geforce #alsa Getting openal audio on nvidia hdmi

Bounty: 50

I want to get programs that use openal to send sound over the hdmi output of my nvidia card by using alsa libraries directly.
Here’s my configuration :

root@localhost /root % cat /proc/asound/cards               
 0 [PCH            ]: HDA-Intel - HDA Intel PCH
                      HDA Intel PCH at 0xef420000 irq 136
 1 [NVidia         ]: HDA-Intel - HDA NVidia
                      HDA NVidia at 0xef080000 irq 17
root@localhost /root %

There doesn’t seems a kernel module is loaded for the Nvidia sound card (in Windows® there’s a specific sound card driver). If required, I have no idea of the kernel module to load.

root@localhost /root % lsmod | grep snd    
snd_hda_intel          36864  0
snd_hda_codec_realtek    90112  1
snd_hda_codec_generic    73728  1 snd_hda_codec_realtek
snd_hda_codec_hdmi     49152  2
snd_hda_codec         135168  4 snd_hda_intel,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
snd_hda_core           81920  5 snd_hda_intel,snd_hda_codec,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek
snd_hwdep              16384  1 snd_hda_codec
snd_pcm               114688  4 snd_hda_intel,snd_hda_codec,snd_hda_core,snd_hda_codec_hdmi
snd_timer              32768  1 snd_pcm
snd                    86016  8 snd_hda_intel,snd_hwdep,snd_hda_codec,snd_timer,snd_hda_codec_hdmi,snd_hda_codec_generic,snd_hda_codec_realtek,snd_pcm
soundcore              16384  1 snd
root@localhost /root %

So I unmuted spdif inputs in alsamixer:

but the sound is still being sent to my pc speakers instead of hdmi (maybe it’s normal since there’s no spdif input cable on my graphic card).

I read about .asoundrc, but I have no idea on which device to select (the hdmi audio ):

root@localhost /root % aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
default:CARD=PCH
    HDA Intel PCH, ALC887-VD Analog
    Default Audio Device
sysdefault:CARD=PCH
    HDA Intel PCH, ALC887-VD Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    Front speakers
surround21:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Digital
    IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=PCH,DEV=0
    HDA Intel PCH, HDMI 0
    HDMI Audio Output
hdmi:CARD=PCH,DEV=1
    HDA Intel PCH, HDMI 1
    HDMI Audio Output
hdmi:CARD=PCH,DEV=2
    HDA Intel PCH, HDMI 2
    HDMI Audio Output
dmix:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    Direct sample mixing device
dmix:CARD=PCH,DEV=1
    HDA Intel PCH, ALC887-VD Digital
    Direct sample mixing device
dmix:CARD=PCH,DEV=3
    HDA Intel PCH, HDMI 0
    Direct sample mixing device
dmix:CARD=PCH,DEV=7
    HDA Intel PCH, HDMI 1
    Direct sample mixing device
dmix:CARD=PCH,DEV=8
    HDA Intel PCH, HDMI 2
    Direct sample mixing device
dsnoop:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    Direct sample snooping device
dsnoop:CARD=PCH,DEV=1
    HDA Intel PCH, ALC887-VD Digital
    Direct sample snooping device
dsnoop:CARD=PCH,DEV=3
    HDA Intel PCH, HDMI 0
    Direct sample snooping device
dsnoop:CARD=PCH,DEV=7
    HDA Intel PCH, HDMI 1
    Direct sample snooping device
dsnoop:CARD=PCH,DEV=8
    HDA Intel PCH, HDMI 2
    Direct sample snooping device
hw:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    Direct hardware device without any conversions
hw:CARD=PCH,DEV=1
    HDA Intel PCH, ALC887-VD Digital
    Direct hardware device without any conversions
hw:CARD=PCH,DEV=3
    HDA Intel PCH, HDMI 0
    Direct hardware device without any conversions
hw:CARD=PCH,DEV=7
    HDA Intel PCH, HDMI 1
    Direct hardware device without any conversions
hw:CARD=PCH,DEV=8
    HDA Intel PCH, HDMI 2
    Direct hardware device without any conversions
plughw:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    Hardware device with all software conversions
plughw:CARD=PCH,DEV=1
    HDA Intel PCH, ALC887-VD Digital
    Hardware device with all software conversions
plughw:CARD=PCH,DEV=3
    HDA Intel PCH, HDMI 0
    Hardware device with all software conversions
plughw:CARD=PCH,DEV=7
    HDA Intel PCH, HDMI 1
    Hardware device with all software conversions
plughw:CARD=PCH,DEV=8
    HDA Intel PCH, HDMI 2
    Hardware device with all software conversions
hdmi:CARD=NVidia,DEV=0
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=1
    HDA NVidia, HDMI 1
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=2
    HDA NVidia, HDMI 2
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 3
    HDMI Audio Output
dmix:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Direct sample mixing device
dmix:CARD=NVidia,DEV=7
    HDA NVidia, HDMI 1
    Direct sample mixing device
dmix:CARD=NVidia,DEV=8
    HDA NVidia, HDMI 2
    Direct sample mixing device
dmix:CARD=NVidia,DEV=9
    HDA NVidia, HDMI 3
    Direct sample mixing device
dsnoop:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Direct sample snooping device
dsnoop:CARD=NVidia,DEV=7
    HDA NVidia, HDMI 1
    Direct sample snooping device
dsnoop:CARD=NVidia,DEV=8
    HDA NVidia, HDMI 2
    Direct sample snooping device
dsnoop:CARD=NVidia,DEV=9
    HDA NVidia, HDMI 3
    Direct sample snooping device
hw:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Direct hardware device without any conversions
hw:CARD=NVidia,DEV=7
    HDA NVidia, HDMI 1
    Direct hardware device without any conversions
hw:CARD=NVidia,DEV=8
    HDA NVidia, HDMI 2
    Direct hardware device without any conversions
hw:CARD=NVidia,DEV=9
    HDA NVidia, HDMI 3
    Direct hardware device without any conversions
plughw:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Hardware device with all software conversions
plughw:CARD=NVidia,DEV=7
    HDA NVidia, HDMI 1
    Hardware device with all software conversions
plughw:CARD=NVidia,DEV=8
    HDA NVidia, HDMI 2
    Hardware device with all software conversions
plughw:CARD=NVidia,DEV=9
    HDA NVidia, HDMI 3
    Hardware device with all software conversions
root@localhost /root %

Also none of the Nvidia devices of this list works with aplay -D

root@localhost /root % aplay -Dhw:1 /usr/share/kde4/apps/kolf/sounds/blackhole.wav
aplay: main:788: No such file or directory

Looking with strace, it seems it tries to open a non existing device file:

root@localhost /root % strace aplay -Dhw:1 /usr/share/kde4/apps/kolf/sounds/blackhole.wav 2>&1 | grep /dev/snd
open("/dev/snd/controlC1", O_RDONLY|O_CLOEXEC) = 3
open("/dev/snd/controlC1", O_RDWR|O_CLOEXEC) = 3
open("/dev/snd/pcmC1D0p", O_RDWR|O_NONBLOCK|O_CLOEXEC) = -1 ENOENT (No such file or directory)
root@localhost /root % 

Which looks normal since device 1-1 does not exists:

root@localhost /root % cat /proc/asound/devices
  1:        : sequencer
  2: [ 0]   : control
  3: [ 0- 0]: digital audio playback
  4: [ 0- 0]: digital audio capture
  5: [ 0- 1]: digital audio playback
  6: [ 0- 3]: digital audio playback
  7: [ 0- 7]: digital audio playback
  8: [ 0- 8]: digital audio playback
  9: [ 0- 0]: hardware dependent
 10: [ 0- 2]: hardware dependent
 11: [ 1]   : control
 12: [ 1- 3]: digital audio playback
 13: [ 1- 7]: digital audio playback
 14: [ 1- 8]: digital audio playback
 15: [ 1- 9]: digital audio playback
 16: [ 1- 0]: hardware dependent
 33:        : timer
root@localhost /root %

Additionally, I discovered pavucontrol claim the hdmi port is unplugged whereas I have the video signal on the television.


Get this bounty!!!