I tried parsing a gigantic XML file and I ended up running out of virtual memory. The OS put all my applications on pause and gave me a screen to shutdown applications to free more space. I killed the XML parsing application and now have tons of space but I can't resume my paused applications anymore. What should I do?
I just installed the p2p software Alliance.
When I'm trying to open Alliance a "Java Virtual Machine Launcher" window pops up with this error message: "unable to access jarfile alliance.tmp".
What can I do to use alliance anyway?
Thanks.
I'm running an Ubuntu Server 12.04, and recently I configured it to do NAT for my laptop. Since the server has only one NIC, I followed instructions online to create a virtual network device (eth0:0) that has a LAN IP address, then further configured iptables and UFW to allow internet sharing. However, just a few days ago, I discovered that one of the PHP pages hosted on the server failed for no apparent reason. A little digging revealed that the MySQL server started refusing connections from localhost. The same happened with a page (PhpMyAdmin) that was configured to be accessible only from localhost (in Apache2).
The error, as shown by $mysql --protocol=tcp -u root -p looks like
ERROR 1130 (HY000): Host '<host name of eth0>' is not allowed to connect to this MySQL server
However, the funny thing is, I configured the mysql server to allow root access from localhost (only). Moreover, the mysql server listens only on 127.0.0.1:3306, as shown by:
sudo netstat -npa | head
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 1029/mysqld
which means that the connection could have only come from 127.0.0.1
(Note that MySQL is working because I can still connect to it via unix domain sockets)
In effect, it seems that all tcp connections originating from 127.0.0.1 to 127.0.0.1 appear to any local daemon to come from the eth0 IP address. Indeed, apache2 allowed me to access PhpMyAdmin after I added allow <eth0 IP address>.
The following are my network configurations (redacted):
/etc/hosts:
127.0.0.1 localhost
211.x.x.x <host name of eth0> <server name>
#IPv6 Defaults follows ....
/etc/network/interfaces:
auto lo
iface lo inet loopback
auto eth0
iface eth0 inet static
address 211.x.x.x
netmask 255.255.255.0
gateway 211.x.x.x
dns-nameservers 8.8.8.8
# dns-* options are implemented by the resolvconf package, if installed
dns-search xxxxxxx.com
hwaddress ether xx:xx:xx:xx:xx:xx
auto eth0:0
iface eth0:0 inet static
address 192.168.57.254
netmask 255.255.254.0
broadcast 192.168.57.255
network 192.168.57.0
/etc/ufw/sysctl.conf:
#Uncommented the following lines
net/ipv4/ip_forward=1
net/ipv6/conf/default/forwarding=1
/etc/default/ufw:
DEFAULT_FORWARD_POLICY="ACCEPT" #Changed DROP to ACCEPT
/etc/init/internet-sharing.conf (upstart script I wrote), section pre-start script:
iptables -A FORWARD -o eth0 -i eth0:0 -s 192.168.57.22 -m conntrack --ctstate NEW -j ACCEPT
iptables -A FORWARD -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
iptables -A POSTROUTING -t nat -j MASQUERADE
Note again that my problem here is that programs cannot access localhost tcp services, from the server itself, and that access is blocked because the services have access control allowing only 127.0.0.1. I have no problem connecting (as in TCP connections) to services via tcp, even if the services listen only on 127.0.0.1. I do NOT want to connect to the services from another computer.
I have a couple of development Virtual PC images; now I installed Windows Server 2008 + Hyper-V on my main dev laptop and need to migrate those images to Hyper-V. Google only finds steps for some older version of Hyper-V - I don't even see the wizard steps they are talking about.
Any help would be highly appreciated!
I implemented client-side Kerberos support to an open source software, and I want to test it.
I don't have a Kerberos network at home and unfortunately don't have the skills/time to reliably set up one.
Is there a Virtual Machine image that I could fire up, and that would include a properly working Kerberos environment, so that I can test my client app?
(freely downloadable Linux/Microsoft/anything all acceptable)
I am trying to setup virtual subdomains using Bind9, following this tutorial.. http://groups.drupal.org/node/16862 which I've completed. Basically setting up the zone and modifying the resolv.conf file and the named.conf.local file.
I've gotten everything to work, and I am able to from my server ping mydomain.com , test.mydomain.com and when i do a dig I get the following..
; <<>> DiG 9.7.0-P1 <<>> test.mydomain.com
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 32606
;; flags: qr aa rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 1, ADDITIONAL: 1
;; QUESTION SECTION:
;test.mydomain.com. IN A
;; ANSWER SECTION:
test.mydomain.com. 86400 IN A 174.###.###.#
;; AUTHORITY SECTION:
mydomain.com. 86400 IN NS mydomain.com.
;; ADDITIONAL SECTION:
mydomain.com. 86400 IN A 174.###.###.#
;; Query time: 0 msec
;; SERVER: 127.0.0.1#53(127.0.0.1)
;; WHEN: Wed Jan 19 21:06:01 2011
;; MSG SIZE rcvd: 86
So it looks like everything is working. However, when I try and do test.mydomain.com in the browser, expecting it to default for now to mydomain.com it does not work and I get a server not found page in Firefox.
I did read elsewhere that in your virutalhosts file you also need to setup a *.mydomain.com alias, but that didn't fix anything.
Any other information that I could provide to help troubleshoot, or any troubleshooting suggestions?
I am using Ubuntu 10.4, with typical LAMP setup. The only other things installed on the server are Bind9 and ftp client.
I use Assembla.com and it does everything I need, SVN, bug tracking, ticketing...
the only thing I don't like is that the server is not mine, I'm putting all my company property on a server in the coulds. I was wondering if there is an virtual machine to download and put on my server to serve all Assembla does?
I have developed a asp.net application on my VMWare virtual machine that I can access (on my VM) by going to http://localhost:1044
How can I access this from safari on my Mac that is running the VM?
I tried running ipconfig on my VM and then using the IP address that was given for "Ethernet adapter Local Area Connection", something like this: http://192.168.179.139:1044/ but this throws a not found error. I am currently using NAT.
How can I get to localhost on my VM from my mac?
Is there any application that allows access to the other os in a multi-boot computer?
Access like in a virtual machine. Wherein you are able to see your other installation through it. Make file modifications, installs, and uninstalls. And those changes are being mirrored in your physical os when you boot to it?
Hi all,
The external hard drive which contains all my photos and where I backed-up all my important documents is no longer recognized. It is a three month old 500GB Iomage Prestige Desktop Hard Drive.
When I plug it in, it is recognised as a USB device, because it shows up when I type lsusb, but dmesg gives this error message.
[19712.013250] usb 2-2: new high speed USB device using ehci_hcd and address 21
[19712.145347] usb 2-2: configuration #1 chosen from 1 choice
[19712.147214] scsi25 : SCSI emulation for USB Mass Storage devices
[19712.147514] usb-storage: device found at 21
[19712.147519] usb-storage: waiting for device to settle before scanning
[19717.148978] usb-storage: device scan complete
[19717.149527] scsi 25:0:0:0: Direct-Access ST350082 0AS PQ: 0 ANSI: 2 CCS
[19717.151020] sd 25:0:0:0: Attached scsi generic sg2 type 0
[19717.151685] sd 25:0:0:0: [sdb] 976773168 512-byte logical blocks: (500 GB/465 GiB)
[19717.160402] sd 25:0:0:0: [sdb] Write Protect is off
[19717.160412] sd 25:0:0:0: [sdb] Mode Sense: 34 00 00 00
[19717.160418] sd 25:0:0:0: [sdb] Assuming drive cache: write through
[19717.165685] sd 25:0:0:0: [sdb] Assuming drive cache: write through
[19717.165691] sdb: sdb1
[19719.171808] sd 25:0:0:0: [sdb] Assuming drive cache: write through
[19719.171818] sd 25:0:0:0: [sdb] Attached SCSI disk
[19737.430998] sd 25:0:0:0: [sdb] Unhandled sense code
[19737.431007] sd 25:0:0:0: [sdb] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
[19737.431016] sd 25:0:0:0: [sdb] Sense Key : Medium Error [current]
[19737.431027] sd 25:0:0:0: [sdb] Add. Sense: Unrecovered read error
[19737.431038] end_request: I/O error, dev sdb, sector 6160463
[19737.431050] Buffer I/O error on device sdb1, logical block 6160400
[19737.431060] Buffer I/O error on device sdb1, logical block 6160401
[19737.431067] Buffer I/O error on device sdb1, logical block 6160402
[19737.431075] Buffer I/O error on device sdb1, logical block 6160403
[19737.431082] Buffer I/O error on device sdb1, logical block 6160404
[19737.431088] Buffer I/O error on device sdb1, logical block 6160405
[19737.431096] Buffer I/O error on device sdb1, logical block 6160406
[19737.431102] Buffer I/O error on device sdb1, logical block 6160407
[19737.431114] Buffer I/O error on device sdb1, logical block 6160408
[19737.431121] Buffer I/O error on device sdb1, logical block 6160409
[19737.712183] sd 6:0:0:0: [sdb] Unhandled sense code
[19737.712191] sd 6:0:0:0: [sdb] Result: hostbyte=DID_ERROR driverbyte=DRIVER_SENSE
[19737.712200] sd 6:0:0:0: [sdb] Sense Key : Hardware Error [current]
[19737.712210] sd 6:0:0:0: [sdb] Add. Sense: No additional sense information
[19737.712222] end_request: I/O error, dev sdb, sector 0
[19737.712232] Buffer I/O error on device sdb, logical block 0
Neither does the external drive show when I use fdisk:
jeroen@phalacrocorax:~$ sudo fdisk -l
[sudo] password for jeroen:
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000341ad
Device Boot Start End Blocks Id System
/dev/sda1 * 1 18714 150320173+ 83 Linux
/dev/sda2 18715 19457 5968147+ 5 Extended
/dev/sda5 18715 19457 5968116 82 Linux swap / Solaris`
I popped the disk out of the casing put it on a SATA connect internally and then tried the file recovery programs testdisk/photorec and SpinRite, but both failed because they couldn't recognize the external harddisk.
Do I have any other options?
I have a WordPress based website running on a shared hosting. Its response time is very decent (around 2s to retrieve the HTML page and 5s to load all the resources).
I was planning to move it to a dedicated virtual server (Ubuntu 12.04 LTS), which should theoretically improve things and make them more consistent given its not shared. However I observed severe performance degredation, with the page taking 10seconds to be generated.
I ruled out network issues by editing /etc/hosts on the server and mapping the domain to 127.0.0.1. I used the Apache load tester ab to get the HTML, so JS, CSS and images are all excluded. It still took 10 seconds.
I have Zpanel installed on the server which also uses MySQL, and its pages come up quite fast (1.5s) and also phpMyAdmin. Performing some queries on the wordpress database directly through phpMyAdmin returns them quite fast too, with query times in the 10 to 30 millisecond region.
Memory is also sufficient, with only 800Mb being used of the 1Gb physical memory available, so it doesn't seem to be a swap issue either. I have also installed APC to try to improve the PHP performance, but it didn't have any effect.
What else should I look for? What could be causing this degradation in performance? Could it be some kind of I/O issue since I am running on a cloud based virtual server?
I wish to be able to raise the issue with my provider but without showing actual data from some diagnosis I am afraid he will just blame my application.
UPDATE with sar output (every second) when I did an HTTP request:
02:31:29 CPU %user %nice %system %iowait %steal %idle
02:31:30 all 0.00 0.00 0.00 0.00 0.00 100.00
02:31:31 all 2.22 0.00 2.22 0.00 0.00 95.56
02:31:32 all 41.67 0.00 6.25 0.00 2.08 50.00
02:31:33 all 86.36 0.00 13.64 0.00 0.00 0.00
02:31:34 all 75.00 0.00 25.00 0.00 0.00 0.00
02:31:35 all 93.18 0.00 6.82 0.00 0.00 0.00
02:31:36 all 90.70 0.00 9.30 0.00 0.00 0.00
02:31:37 all 71.05 0.00 0.00 0.00 0.00 28.95
02:31:38 all 14.89 0.00 10.64 0.00 2.13 72.34
02:31:39 all 2.56 0.00 0.00 0.00 0.00 97.44
02:31:40 all 0.00 0.00 0.00 0.00 0.00 100.00
02:31:41 all 0.00 0.00 0.00 0.00 0.00 100.00
My suspicion that this comes from I/O related issue is also because a caching plugin I use to reduce the amount of queries to the database, by precompiling PHP pages is actually making things worse instead of better. It seems that file access is making things worse instead.
I've installed Remote Desktop Services and Hyper-V on a server running Windows Server 2012. The Hyper-V settings are showing my GPU as selected for use with RemoteFX as below
However when I go to add the hardware to a virtual machine it does not show up in the list of available hardware.
Sorry, If I'm a little light on details, I'm not sure where to start on this I've been searching for answers for the better part of the day without much luck
I'm trying to install Windows 7 on a virtual machine on my 64 bit Ubuntu Karmic box. I get to the point of selecting my language settings and clicking 'install now', but a short while later I get a blue screen of death.
I've tried a few variations, including using the 32 bit (fails very quickly). The virt-install command I've tried includes this:
sudo virt-install --connect qemu:///system -n ksm-win7 -r 2048 \
--disk path=/home/kief/VM-Images/ksm-win7.qcow2,size=50 \
-c /var/Software/Windows7/Full/64bit/SW_DVD5_SA_Win_Ent_7_64BIT_English_Full_MLF_X15-70749.ISO \
--vnc --os-type windows --os-variant vista --hvm
The limited info I could find suggested that 'vista' should work as the --os-variant, I haven't found any values specific to windows 7.
Here's my blue screen:
I've found very little by Googling, so I'm guessing this isn't a case of KVM simply not supporting Windows 7.
Thanks for any help.
Update:
I have been able to successfully create a Windows 7 VM using the graphical "Virtual Machine Manager" app, although I don't really understand the cause of the problem with the VM created with virt-install. Comparing the configuration files under /etc/libvirt/qemu provides some clues, although I don't know enough to interpret them properly. The interesting differences in the two VM configurations are:
--- win7-virt-install.xml
+++ win7-vmm.xml
-<domain type='qemu'>
+<domain type='kvm'>
@@ -21 +21 @@
- <emulator>/usr/bin/qemu-system-x86_64</emulator>
+ <emulator>/usr/bin/kvm</emulator>
@@ -23 +23 @@
- <source file='/home/kief/VM-Images/ksm-win7.qcow2'/>
+ <source file='/var/lib/libvirt/images/ksm-win7x64.img'/>
I'm not sure if this means the working VM is not using qemu at all, or if there is some other difference in the way it's used with kvm.
Update2:
So I've answered my own question (mostly) below. A KVM VM needs to use KVM's own CPU emulation rather than qemu's in order for me to get Windows 7 installed. I'm not sure whether there is something that can be done to get it working on a qemu-emulation CPU, or whether a newer version will support it. But at least it is possible to get it running on a KVM VM.
I'm currently running V4.7 and I haven't touched any of the user or share settings, and I'm periodically losing read.write permission on both my windows 7 pc and my android tablet connecting over the wireless. Sometime I can access my shares and see the folder directories, but when attempting to open a folder windows denies me access saying I don't have the proper permission. This is after I have logged in with my main account that has full read/write access of everything, same on my androiddevice. This all started when I attempted to delete a large amount of files (8gb) to make more room and about half way through started getting permission errors.
What could be causing this?
Thanks
I'm currently running V4.7 and I haven't touched any of the user or share settings, and I'm periodically losing read.write permission on both my windows 7 pc and my android tablet connecting over the wireless. Sometime I can access my shares and see the folder directories, but when attempting to open a folder windows denies me access saying I don't have the proper permission. This is after I have logged in with my main account that has full read/write access of everything, same on my androiddevice. This all started when I attempted to delete a large amount of files (8gb) to make more room and about half way through started getting permission errors.
What could be causing this?
Thanks
I've never used Amazon EC2 - I am thinking to test a few instances for running intensive computation processes I have a requirement for rather than buying real hardware.
I am given to understand the thing is quite easy to setup - but I have no clue of how it actually works.
Can I upload disc images and install just any software as on any other virtual machine or is there any significant difference?
Any help appreciated!
I booted from a VHD on my laptop and hoped to sysprep this image, but it didn't let me do it. I got a fatal error during the process. I used the following command: sysprep /generalize /shutdown. My question is it possible at all to sysprep a VHD without any HyperV or virtual PC technology?
I have recently setup mass virtual hosting in Apache so that all we need to do is create a directory to create a new vhost. We're then also using wildcard DNS to map all subdomains to the server running our Apache instance.
This works excellently, however I'm now having trouble configuring it to fail-over to an appropriate default/error-page when the vhost directory does not exist.
The problem appears to be conflated between by my desire to handle the two error conditions:
vhost not found i.e. there was no directory found matching the host supplied in the HTTP host header. I'd like this to display an appropriate site not found error page.
The 404 page not found condition of the vhost.
Additionally I have a specialised "api" vhost in its own vhost block.
I've tried a number of variations and none seem to exhibit the behaviour I want. Here's what I'm working with right now:
NameVirtualHost *:80
<VirtualHost *:80>
DocumentRoot /var/www/site-not-found
ServerName sitenotfound.mydomain.org
ErrorDocument 500 /500.html
ErrorDocument 404 /500.html
</VirtualHost>
<VirtualHost *:80>
ServerName api.mydomain.org
DocumentRoot /var/www/vhosts/api.mydomain.org/current
# other directives, e.g. setting up passenger/rails etc...
</VirtualHost>
<VirtualHost *:80>
# get the server name from the Host: header
UseCanonicalName Off
VirtualDocumentRoot /var/www/vhosts/%0/current
# other directives ... e.g proxy passing to api etc...
ErrorDocument 404 /404.html
</VirtualHost>
My understanding is that the first vhost block is used as the default, so I have this here as my catch all site. Next I have my API vhost, and then finally my mass vhost block.
So for a domain that doesn't match the first two ServerName's and has no corresponding directory in /var/www/vhosts/ I'd expect it to fall-over to the first vhost, however with this setup, all domains resolve to my default site-not-found. Why is this?
By putting the mass-vhost block first, I can get the mass-vhosts to resolve properly, but not my site-not-found vhost... and in this case I can't seem to find a way to distinguish between a page-level 404 in the vhost, and the case where the VirtualDocumentRoot fails to find a vhost directory (this appears to use the 404 also).
Any help out of this bind is much appreciated!
is there a way to convert QCOW2 to OVF?
or is there a way to open an QCOW2 on WINDOWS (preferably free/open source)?
the problem is that ubuntu's virtual machine manager was used to create the image and now i'd need to use it on windows (xp).
is there a chance?
thnx
Hi,
I am using the windows xp mode feature in Windows 7 using virtual OS. Do I need to install the Antivirus in Windows xp as well? Or the antivirus that I am running on Windows 7 will take care of it?
Thanks
hi
(1)
i saw in one of your posts that it is possible to get different outputs in windows 7. i am eager to know more. Is there any way i can create a 2 or more virtual cable between two softwares simultaneously. so that simultaneously, two or more audio inputs will be routed to equal no of audio analysers receivers, and then the audio analysers send back a filtered audio back to respective audio inputs...
Please reply to email id: [email protected]
I am using XP Mode within Windows 7, which creates virtual OS, but semi-intergrated into Window 7. Do I need to install an antivirus program within XP Mode as well, or will the antivirus that I am running on Windows 7 take care of XP mode?
I did a great deal of reading here before posting this because I didn't want to post a duplicate - but I'm on a bit of a deadline and getting frustrated, so here goes...
I very, very, very sincerely apologize if this is long winded or hard
to read. Please - please just ask for any information or clarification
and I will give it as quickly as I possibly can. This has become very
frustrating to me and this is the last place I know to turn.
I have no experience with setting up DNS, no experience with nameservers, and no peers to go to for help. So this is kind of my last ditch effort.
The task of setting up a private server has, through circumstances beyond my control, fallen into my lap.
I own a domain (hereafter referred to as yyy.com) and have always used shared hosting - I buy a package and just point it to the domain nameservers they give me. It's always been simple.
yyy.com is registered with network solutions
Now I have purchased a Virtual Private Hosting package from GoDaddy.com - and it comes with Plesk 11.
I have no earthly idea how to begin to get the right nameserver for yyy.com. I have gone through the instructions and have wound up exceedingly frustrated.
I have 2 IP addresses from GoDaddy for the server. This is what I have so far, and I cannot tell if it is working (Since propogation takes so long, it is extremely hard to test for me)
IP 1 : XX.XX.XX.XX
IP 2 : YY.YY.YY.YY
(obviously hidden for privacy)
Now after going through the documentation setup and waiting a few days, this is the setup I have - and so far it does not appear to be working.
Host Record type Value
XX.XX.XX.XX / 24 PTR yyy.com.
yyy.com. NS ns1.yyy.com.
yyy.com. A XX.XX.XX.XX
yyy.com. MX (10) mail.yyy.com.
ftp.yyy.com. CNAME yyy.com.
ipv4.yyy.com. A XX.XX.XX.XX
mail.yyy.com. A XX.XX.XX.XX
mssql.yyy.com. A XX.XX.XX.XX
ns1.yyy.com. A XX.XX.XX.XX
ns2.yyy.com. A YY.YY.YY.YY
webmail.yyy.com. A XX.XX.XX.XX
www.yyy.com. CNAME yyy.com.
yyy.com is pointing to both ns1.yyy.com and ns2.yyy.com
Can anyone give me some assistance here? This is a learning experience for me and days of documentation have left me very confused.
Hi! I just downloaded VMware player (I used to use Virtual Box, but I needed Windows Aero, and vbox doesn't support that yet) But it will automatically resize the guest when I resize the window, and I do not want that. I did not see an option to turn it off. Does anyone know?
Thank you.