#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 #bash #permissions #esxi #dvb-t faild to run a command in bash file in startup

Bounty: 50

I have a virtual machine in EXSI 6.5 and install Ubuntu on that. I write a bash file to run a command in start up as bellow:

#!/bin/bash

# Bash script to dvblast

sleep 10

gnome-terminal --title="foo" -x bash -c 
"printf 'e[8;13;90t'&&dvblast -a 3 -f 12596000 -s 27500000 -v 13 -c Tuner4.cfg -i 1; read line" &

Its run DVBLast in start up with first 10 second sleep. This bash file work fine.

But when I export ovf template from this VM and deploy again to Esxi and start vm, the bash file failed to run by Permission denied. this is output window image:

output

When I run the command with strace see this log:

open("/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libpthread.so.0", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/librt.so.1", O_RDONLY|O_CLOEXEC) = 3
open("/lib/x86_64-linux-gnu/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
DVBlast 2.2 (release)
warning: restarting
open("/usr/lib/x86_64-linux-gnu/gconv/gconv-modules.cache", O_RDONLY) = 3
open("/usr/lib/x86_64-linux-gnu/gconv/ISO8859-1.so", O_RDONLY|O_CLOEXEC) = 3
debug: using linux-dvb API version 5
open("/dev/dvb/adapter3/frontend0", O_RDWR|O_NONBLOCK) = -1 ENOENT (No such file or directory)
error: opening device /dev/dvb/adapter3/frontend0 failed (No such file or directory)
+++ exited with 1 +++

If I run terminal and run sudo -s and then run the bash file its work fine.

Anybody know how I solve this problem? Thanks in advance


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 #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!!!