virtual-machine

How to run openwrt for ppc on qemu?

為{幸葍}努か 提交于 2019-12-11 21:27:39
问题 I need to test some compiled files for MPC8377EWLANA And i don't have hardware yet Any one knows how to run openwrt on qemu-ppc or may be on some other virtual machine? 回答1: For arm you can Run like this qemu-system-arm -M realview-eb-mpcore -kernel openwrt-realview-vmlinux.elf -net nic -net user -nographic similarway you can try qemu-system-ppc -M (machine) -kernel (kernel image) -net nic -net user -nographic 来源: https://stackoverflow.com/questions/18890866/how-to-run-openwrt-for-ppc-on-qemu

After host PC reboot vagrant up shows port collision on any port

瘦欲@ 提交于 2019-12-11 21:27:26
问题 My host OS is Windows . I use Vagrant with box ubuntu/trusty64 Yesterday, after the host PC was rebooted, I am experiencing a problem - port collision, when using vagrant up or vagrant reload . I already updated vagrant to latest version, deleted all settings, all machines, created all from blank (without reinstalling OS on host machine) And the problem still persists. Whe I use port_forward, from 80 to port I want (lets call it port X ) - I get an error - port collision on port X . It can be

User interaction between host and virtual machine

大城市里の小女人 提交于 2019-12-11 20:34:52
问题 I have a python script on my host machine which is trying to run another script in the guest machine. I also want the script on host to feed the script on guest with a number. On host machine: args = shlex.split("vmrun -gu root -gp mohsen77 runProgramInGuest F:/Attacker/Ubuntu1110.vmx /usr/bin/python /home/srastega/Attacker") Attacker = subprocess.Popen(args, stdin=PIPE, stderr=STDOUT, stdout=PIPE) out, err = Attacker.communicate("1\n") exitcode = Attacker.returncode On guest machine: n= int

SSL cert for apache in Azure linux VM

别等时光非礼了梦想. 提交于 2019-12-11 20:24:38
问题 I have created an Ubuntu VM in Azure and I would like to install an SSL Certificate for that VM. This VM runs a django project on apache. What do I do to install the certificate for this VM?? From what I've seen I would have to create a CNAME from an external domain (for which I have issued the SSL) that maps to the DNS name of this VM. And then what?? Do I follow the process of installing a Cert for apache? Do I have to do anything in the Windows Azure Management Portal or everything is

Vagrant ssh using -c or --COMMAND causes the session to close

天大地大妈咪最大 提交于 2019-12-11 19:36:17
问题 I have an issue with vagrant executing commands over ssh. The session terminates after acknowledging my command. For example if I type vagrant ssh -c "echo hello" hello will appear in the terminal and then the session closes. Other than config.ssh.timeout is there any other setting I should check or change? 回答1: That's the expected behavior. Just like in normal ssh <command> , the command is run and session closed after the commend exits. This is also documented. 来源: https://stackoverflow.com

Need to access my VM Windows 8 Local IIS from my Mac OS X host machine

佐手、 提交于 2019-12-11 19:33:45
问题 I'm doing all my mobile development on my Mac OS X (Xamarin Studio or native languages), and using Parallels to work my Microsoft Azure Mobile Services backend in Visual Studio. I've came to the point I want to test my Azure Mobile API, but I don't want to publish the service for every change and also debug it. My problem is that I deploy to my IIS, express or local, works fine in terms of seeing the land page of the API on my Mac physical hosting machine but as soon as I click try it out I

How to enable VT-x inside a Virtual Machine inside a Virtual Machine

好久不见. 提交于 2019-12-11 18:16:53
问题 I have a windows 10 host operating system that supports virtualization. Next, I have an Ubuntu 16.04 virtual machine I created using virtualbox. For development purposes, I need to create a virtual machine inside my guest Ubuntu virtual machine. Unfortunately, I can't enable VT-x option in my guest Ubuntu machine to create a create a virtual machine inside my Ubuntu guest. Any information on how enable VT-x option on my virtual box inside my virtual Ubuntu machine would be appreciated. Edit:

Azure Python SDK- Spinup VM with cloud-init

自作多情 提交于 2019-12-11 17:43:00
问题 I'm trying to spin up VM with cloud-init using Azure SDK. Script is based on this example: https://github.com/Azure-Samples/virtual-machines-python-manage/blob/master/example.py I have added following: with open(cloudinit, "r") as cl: clcont=cl.read() # CUSTOM_DATA=base64.b64encode(clcont.encode('utf-8')).decode('ascii') CUSTOM_DATA=clcont Next in the function create_vm_parameters added: 'custom-data': CUSTOM_DATA I have tried following examples: passed base64, base64 ascii decoded as well as

Trouble Accessing Newly attached disk in DSC on an azure VM

风流意气都作罢 提交于 2019-12-11 16:57:13
问题 I have an issue with a DSC config i'm trying to use to install and run a mongo service on an Azure VM. When the DSC runs on the initial deployment of the VM, the secondary disk 'F' is attached and formatted successfully, however... i receive an error when trying to create directories on the new disk: Error message: \"DSC Configuration 'Main' completed with error(s). Cannot find drive. A drive with the name 'F' does not exist. The PowerShell DSC resource '[Script]SetUpDataDisk' with SourceInfo

Cannot attach to a network adapter on one VM, same code works on another VM

泄露秘密 提交于 2019-12-11 16:53:11
问题 I need to get performance counters from the network card. To make things easy, the user selects the needed adapter by typing an index number in a console application. This is the code that gets the user input and creates performance counter instance var connectionNames = NetworkCardLocator.GetConnectedCardNames().ToArray(); log.Debug("Please select one of the available connections"); log.Debug("--"); for (int i = 0; i < connectionNames.Count(); i++) { log.Debug(i + ". " + connectionNames[i]);